Playing Video

9 posts, 0 answers
  1. Sai
    Sai avatar
    5 posts
    Member since:
    Mar 2012

    Posted 20 Sep 2013 Link to this post

    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
  2. Sai
    Sai avatar
    5 posts
    Member since:
    Mar 2012

    Posted 21 Sep 2013 Link to this post

    Can anybody reply.................... Plzz
  3. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 23 Sep 2013 Link to this post

    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
  4. Sai
    Sai avatar
    5 posts
    Member since:
    Mar 2012

    Posted 23 Sep 2013 Link to this post

    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
  5. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 24 Sep 2013 Link to this post

    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
  6. Sai
    Sai avatar
    5 posts
    Member since:
    Mar 2012

    Posted 24 Sep 2013 Link to this post

    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
  7. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 25 Sep 2013 Link to this post

    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
  8. Sai
    Sai avatar
    5 posts
    Member since:
    Mar 2012

    Posted 25 Sep 2013 Link to this post

    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
  9. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 25 Sep 2013 Link to this post

    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
Back to Top