Use selenium to click on swf

I am trying to use the Selenium IDE to click swf on an html page. Changing the DIV and Embed identifier depends on the timestamp, for example. id="FLASH_0_23458974594"I tried using id=/^FLASH_([0-9]+_)[0-9]([0-9]+)/or id="FLASH_glob:*", but the IDE does not compile swf. Am I something wrong here?

Thanks.

+5
source share
4 answers

Have you tried?

click | //object[contains(@id,'FLASH_')]
+3
source

Clicking on the subject of the flash will not work. The only known way to automate Flash using Selenium is to open the user interface functions in a Flash object via JavaScript. You can then call this JavaScript using the getEval () function in Selenium RC.

+2

, , . @Zugwalt, Java Robot. Selenium Grid , , RemoteWebDriver, jsch, ssh- xdotool, .

Gist

+1

We use the Java client for selenium, and sometimes our tests use the Java Robot to move the mouse and click when we cannot directly interact with the web browser. This has flaws (for example, the browser should be in the foreground, and accuracy can be a bit complicated), but when running tests on a virtual machine, these flaws are minimized.

0
source

All Articles