This is a migrated thread and some comments may be shown as answers.

Can I record a click that Play a Youtube video?

2 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Karla
Top achievements
Rank 1
Karla asked on 23 Jan 2012, 08:57 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 24 Jan 2012, 12:13 AM
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
0
Karla
Top achievements
Rank 1
answered on 27 Jan 2012, 12:14 AM

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,
Tags
General Discussions
Asked by
Karla
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Karla
Top achievements
Rank 1
Share this question
or