I'm trying to automate a scenario in which I have to upload document but I couldn't handle the File Upload window once I click the 'Choose File' button on my web application.
I'm using C# language and Chrome browser.
I'm trying to automate a scenario in which I have to upload document but I couldn't handle the File Upload window once I click the 'Choose File' button on my web application. I'm using C# language and Chrome browser. |
|||||||||
|
You can try the following if your File element has This will not open up the File upload windows dialog. Rather this will send the required value to the input File field. You can refer to the following links for details: http://seleniumeasy.com/selenium-tutorials/uploading-file-with-selenium-webdriver How to Upload files using Selenium webdriver in Java Regards, |
|||||||||||||||||
|
Selenium doesn't have any inbuilt functions to handle file upload/interacting with windows dialogues(print dialogue)/windows popups. If you want to interact with windows objects, you can use AutoIT It is a great tool to interact with windows objects and very easy to use. See the below link for steps to work with. http://www.toolsqa.com/seleniu-webdriver/autoit-selenium-webdriver/ |
|||||||||||||||||||||
|