I’m using selenium webdriver, C#.
Is it possible to make work webdriver with Firefox select file dialog?
Or must I use something like AutoIt?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are trying to select a file for upload Selenium 2 supports HTML file inputs. For example:
HTML
Selenium Code
Basically you “type” (with
SendKeys) the full file path to the file input element. Selenium handles the file selection dialog for you.However if you want to manipulate an arbitrary file selection dialog, then like Anders said, you have to go outside of Selenium.