简体   繁体   中英

file upload using flash button(*.swf) in Selenium webdriver

in my test web page I have to upload a file, the uploader is a flash based (*.swf) button. Can someone give me the proper code to test the file upload button?

driver.findElement(By.xpath(""//div/div/div[2]/div/div/div[2]/object")).click();

Thank you.

It is not possible to handle flash objects using selenium webdriver. You can use 3rd party API like Sikuli for this.

Please check the following post on Sikuli integration with selenium webdriver Example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM