battleship
battleship

Reputation: 353

invoke an autoit exe file in Selenium Ruby Webdriver

Please help guide me how to run an .exe file generated by AutoIT tool in a Selenium Ruby Webdriver script ?

My scenario is that I need to upload a file by clicking a Flash button, then select a file in the "Open" window popup. However, Selenium cannot interact with a window popup, so I used AutoIT tool to fill the file path and generated to a .exe file. The thing I want to do is that now I want Selenium will run the exe file generated by AutoIT tool after "Open" window popup displayed.

Upvotes: 0

Views: 1051

Answers (1)

Abhishek_Mishra
Abhishek_Mishra

Reputation: 4621

Try this :

f = IO.popen("path to your autoit exe")
puts f.readlines 

Upvotes: 0

Related Questions