Jump to content

File chooser window with Selenium WebDriver


Akos
 Share

Recommended Posts

I use WebDriver to automate some actions on webpage and AutoIT script to fill file chooser dialog window with file path.

ControlFocus("Open a file","","Edit1")
ControlSetText("Open a file","","Edit1", $CmdLine[1])
ControlClick("Open a file","","Button1")

This is working well in most cases, but it is unable to type some strings, so test fails.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...