Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created September 9, 2020 20:01
Show Gist options
  • Save seleniumgists/ae89b9bc3e1843d0606d028638547fa6 to your computer and use it in GitHub Desktop.
Save seleniumgists/ae89b9bc3e1843d0606d028638547fa6 to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
org.openqa.selenium.ElementNotInteractableException: The command failed because the specified element is not pointer or keyboard interactable.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'xxxxxx', ip: 'xxxxxx', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '13.0.2'
Driver info: org.openqa.selenium.edge.EdgeDriver
Capabilities {acceptInsecureCerts: false, browserName: MicrosoftEdge, browserVersion: 44.18362.449.0, javascriptEnabled: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}```
I tried to the below
```JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].style.display = 'block';", driver.findElement(By.cssSelector("input[type='file']")));
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("xxxx")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment