Can I record a click that Play a Youtube video?

3 posts, 1 answers
  1. Karla
    Karla avatar
    24 posts
    Member since:
    Jun 2011

    Posted 23 Jan 2012 Link to this post


    Hi,

    I was trying to record when a user clicks to play a youtube video from a Pop up window.  There is a way to record this action?

    In the attachment is the image of the page I tried to record.  The connection with Pop-up is OK, but I need to test when user clicks on the Youtube video.

    Thanks

     
  2. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 23 Jan 2012 Link to this post

    Hello Karla,

    Test Studio does not support Flash, which is why you can't record clicks specific to buttons on a YouTube video player. Test Studio simply sees it as a single object element in the DOM.

    As a work-around you can use a Blind Mouse Click. Simply choose a neighboring element as the reference for the click.

    If you find that the built-in "Scroll to Visible" of that step is causing the click to execute on the wrong coordinates, Customize the Step in Code and comment out the line that scrolls the browser:

    // Desktop command: LeftClick on LikeSpan
    HtmlSpan LikeSpan = Pages.Sample.LikeSpan;
    LikeSpan.Wait.ForExists(10000);
    //LikeSpan.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop);
    LikeSpan.MouseClick(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, -13, -41, ArtOfTest.Common.OffsetReference.AbsoluteCenter);


    Kind regards,
    Anthony
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Karla
    Karla avatar
    24 posts
    Member since:
    Jun 2011

    Posted 26 Jan 2012 Link to this post


    Hi,

    Well thanks for the response, I recorded this step using the highlight, and looks like it play the youtube video without any issue. ( see the step 9 in the image)


    thanks,
Back to Top