Steps to reproduce
Selenium leaves control after clicking to file explorer Browse button in MS Edge. This works fine in Chrome and Firefox but absolutely blocking to run next step in the code. I tried code via all possible ways and below code works to click to Browse button but after this step selenium leaves control because file explorer window opens. Is this Selenium or MS Edge driver issue?
- Open ajax web application through MS Edge (works)
- Click to browse button through web driver core or java script method (works)
- Selenium gone, leaves control till we close file explorer button (doesn’t work) - this works fine in GC and FF.
4 (Blocked). Send key to type file name or implement AutoIt script (works)
5 (Blocked). Click to open button via AutoIt script (works)
6 (Blocked). File attached fine (works)
WebElement we = null;
Selenium version - Latest 3.6.0
Browser - MS Edge
MS Edge Driver - Latest Release 15063
Application type - Ajax web
This is actually blocking attachment functionality and it would be great if selenium will fix this. So far i just see Autoit is the solution as a 3rd party software but it is very tedious to add separate scripts for every browse buttons in the application, any code by selenium blocks due to OS dialog appearance.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Steven K.”
Changed Status to “Not reproducible”
The behavior for this has now changed and what you describe is no longer reproducible. When you try to click an input type="file" we will return an error. Instead if you send keys to input type="file" with a proper file path we will upload the file for you. This is because when you open the file dialog you leave the realm of WebDriver’s control (the browser) and an OS-specific prompt appears and we never return (because that prompt is blocking the browser from continuing).