Selenium leaves control after clicking to file explorer Browse button in MS Edge

Issue #14165940 • Assigned to Steven K.

Details

Created
Oct 10, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

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?

Steps:

  1. Open ajax web application through MS Edge (works)
  2. Click to browse button through web driver core or java script method (works)
  3. 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)

Working code:
driver.findElement(By.id(“browseID”)).click();
OR
WebElement we = null;
((JavascriptExecutor)ClientSessionFactory.session().webDriver()).executeScript("document.getElementsByName(‘browseName’)[0].click()", we);

Environment:
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.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

You need to sign in to your Microsoft account to add a comment.

Sign in