Re: [webdriver] Testing Flash Videos and Dynamic Content using WebDriver

356 views
Skip to first unread message

Krishnan Mahadevan

unread,
Nov 12, 2012, 6:14:59 AM11/12/12
to webd...@googlegroups.com
WebDriver CANNOT work with Flash content.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



On Thu, Nov 8, 2012 at 9:54 PM, kiran kumar Dudigama <kirankuma...@gmail.com> wrote:
Can anyone please let me know and write the code for 

1. How to run a YouTube video and 

2. Dynamically changing text(verification while logging in to any mail)

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/Prd8txwT8JcJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

darrell

unread,
Nov 12, 2012, 9:33:47 AM11/12/12
to webd...@googlegroups.com
A YouTube video would be hosted in something like an EMBED or OBJECT tag. WebDriver can locate these tags inside the DOM. It would be able to tell you the size and position of the object but not much beyond that. If you have a tool/library which can manipulate the YouTube video, you could pass the size and position using WebDriver but a third party tool/library would be needed.

Not sure what you are looking for when you talk about dynamically changing text. If you mean you want a different text string on every run of an automation suite then you should look into the system time. In Java I would use the System.currentTimeMillis() to get the current time. Usually at the start of a test I would get the current time, print it to a log then use it for various strings, e.g.

    String timestamp = new String(System.currentTimeMillis());

    String username = "Username-" + timestamp;

Darrell

kiran kumar Dudigama

unread,
Nov 14, 2012, 1:10:13 PM11/14/12
to webd...@googlegroups.com
Thanks darrel for giving such valuable information about this.

 please have a look on registration page of the www.jobtardis.in website. In that security code will be changed dynamically. How to automate that?.

kiran kumar Dudigama

unread,
Nov 14, 2012, 1:11:18 PM11/14/12
to webd...@googlegroups.com
   Hi krishnan,

         Thanks for your valuable information. 
 
    please have a look on registration page of the www.jobtardis.in website. In that security code will be changed dynamically. How to automate that?.

Krishnan Mahadevan

unread,
Nov 14, 2012, 1:22:00 PM11/14/12
to webd...@googlegroups.com
That looks like a CAPTCHA image. They CANNOT be automated since the whole purpose of introducing CAPTCHAs is to prevent automation. 

You may have to work with your development to get a test value that you can use or have them disable it in your test environments. 
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/YtumAqrNLogJ.

To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.


--
Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

darrell

unread,
Nov 15, 2012, 10:24:19 AM11/15/12
to webd...@googlegroups.com
If it is a captcha then you might want to search this google group for "captcha". This topic has been discussed before. Reading the old messages will still be relevent.

Darrell
Reply all
Reply to author
Forward
0 new messages