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

Playing Video

8 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sai
Top achievements
Rank 2
Sai asked on 20 Sep 2013, 11:59 AM
Hi,
Urgently need a solution...
As i need to play a video which is bundled in iframe and this iframe does not contain any id or partial id only it has [height], [width] and [src].

Can you please assist.

Thanks in advance


Regards
Sairam

8 Answers, 1 is accepted

Sort by
0
Sai
Top achievements
Rank 2
answered on 21 Sep 2013, 07:41 AM
Can anybody reply.................... Plzz
0
Boyan Boev
Telerik team
answered on 23 Sep 2013, 08:15 AM
Hello Sai,

Thank you for contacting us.

How we can help you with this video? Please elaborate a bit more on your scenario. What do you want to achieve?

Test Studio is an innovative and easy-to-use automated Web and WPF testing solution. It cannot play videos.

Hope to hear from you soon.
 

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Sai
Top achievements
Rank 2
answered on 23 Sep 2013, 09:38 AM
Hello Boyan,

Thanks for the response.

My Issue:
I have a test case which navigates to a page and that navigated page contains a combobox with collection of items,
when selected any item from the combobox that will load a page this page contains you tube video and now i want to press this video to run
as this video embedded in <div > tag in <embed> and i want to run the video programatically so that i can see video streaming and running.

And here i have copied videos xpath and programatically am clicking by using
Manager.ActiveBrowser.Actions.Click("[ with copied xpath ]").
But, when i click play this video is not activated or invoked, how can i run this video.

Please Suggest.

Regards
Sairam
0
Boyan Boev
Telerik team
answered on 24 Sep 2013, 11:33 AM
Hello Sai,

Manager.ActiveBrowser.Actions.Click() method doesn't accept XPath. You should first find and define the object/element and then perform a click.

Your code should look like this (if the element is a button):

HtmlButton myButton = ActiveBrowser.Find.ByXPath<HtmlButton>("Xpath");
myButton.MouseClick();

Hope this helps.

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Sai
Top achievements
Rank 2
answered on 24 Sep 2013, 12:07 PM

Hello Boyan,

Thanks.

Can X-path of the button which appears in middle of video is identified..?
 if this identified how this can be done...?
How i can see a video playing.

Regards
Sai
0
Boyan Boev
Telerik team
answered on 25 Sep 2013, 12:42 PM
Hi Sai,

Unfortunately Test Studio does not have built-in support for Flash objects (e.g. YouTube video).

Test Studio sees Java plugins, Flash objects and ActiveX controls as a single block <object> or <applet> element and cannot distinguish the individual components within it. It's basically a black box.

The closest we have is what we call "Blind mouse clicks" i.e. invoke a mouse click at these coordinates assuming the right object/button will be there at the right time.

Thank you for your understanding.

Regards,

Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Sai
Top achievements
Rank 2
answered on 25 Sep 2013, 01:53 PM
Hello Boyan,

Thank you for the replies.

We have used telerik studio to identify player object and recorded playing a video and generated the code.

In this way we have achieved the playing video functionality

Regards
Sai
0
Boyan Boev
Telerik team
answered on 25 Sep 2013, 02:25 PM
Hi Sai,

Glad to hear that!

If you need any additional assistance, please do not hesitate to contact us again. 

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Sai
Top achievements
Rank 2
Answers by
Sai
Top achievements
Rank 2
Boyan Boev
Telerik team
Share this question
or