Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use selenium to click on a swf

Tags:

flash

selenium

I'm trying to use Selenium IDE to click on a swf in a html page. The DIV id and Embed id change depend on the timestamp e.g. id="FLASH_0_23458974594", I've tried using id=/^FLASH_([0-9]+_)[0-9]([0-9]+)/ or id="FLASH_glob:*" but the IDE is not picking up the swf. Am I doing something wrong here?

Thanks.

like image 737
JLau Avatar asked May 04 '09 20:05

JLau


People also ask

How to handle flash message in Selenium?

You need to download flashwebdriver jar files: Step 1) After download, add the jar file in your project as shown in below screen. Step 2) Under flash jar file there is a separate flashobjectwebdriver class. Implement the flashWebdriver “myFlashmovie” in your selenium script as shown below in screen.

What can be used to test Flash applications using Selenium?

Selenium, Soap UI, TestComplete, and Test Studio testing tools can be used in flash testing.

What is the term RC refer to in Selenium RC?

Selenium Remote Control (RC) was the main Selenium project that sustained for a long time before Selenium WebDriver(Selenium 2.0) came into existence. Now Selenium RC is hardly in use, as WebDriver offers more powerful features, however users can still continue to develop scripts using RC.


1 Answers

Have you tried contains?

click | //object[contains(@id,'FLASH_')]
like image 179
s_hewitt Avatar answered Oct 15 '22 18:10

s_hewitt