Relative Content

Tag Archive for javaselenium-webdrivermicrosoft-edgewebbrowser-controlselenium-edgedriver

Selenium: set default upload folder for Edge browser

Simple case here: I’m running tests with Selenium on Java using Edge browser (employer requirement). One test involves uploading a file, which has to be fully emulated, simply putting file path in the input doesn’t do the job. My question is: can I predefine which folder is opened by default when I open up file explorer from the browser for the first time? Because navigating to the right folder is complicated, it would be much easier to open it already at the desired location, I could then simply use Java robot to tab over inputs until I reach the filename input, type the name of the file and hit Enter.