Search code examples
seleniumselenium-webdriversafaridriver

Safari 13 pops up 'Glass Pane' when using Selenium sendKeys() to <input type="file"> element


NOTE: The same thing is working as expected in Safari 12.1.2 but it's broken in Safari 13.0 & 13.1

Issue: System pops up 'Glass Pane' when using Selenium sendKeys() method to element.

Background: I want to upload a file (ex. image) in my application.

Safari 12.1.2 behaviour: There is no need to simulate the clicking of the "Browse" button. SafariDriver automatically enters the file path onto the file-selection text box of the element.

Safari 13 behaviour: System pops up 'Glass Pane' when using Selenium sendKeys() method to element.


Solution

  • This seems to be fixed for this setup:

    • MacOS: Catalina 10.15.4
    • Safari: 13.1 (15609.1.20.111.8)
    • Selenium: 3.141.59
    • Scripting Language: Java 1.8