Reputation: 31
I'm trying to click with selenium on Internet Explorer and it's not working. I have tried element.click()
, moveToElement(element).click().build().perform()
, javascript
and nothing.
Actually, the click works sometimes. It's really unstable. I also tried wait until is clickable, Thread.sleep
and, guess what, nothing changes.
I'm using Selenium 3.4.0
, IEDriverServer_x64_3.0.0
, ie11
and java
.
Upvotes: 2
Views: 4662
Reputation: 31
I saw this solution somewhere and it worked for me:
wait.until(ExpectedConditions.visibilityOfElementLocated(locator))
element.sendKeys("");
element.click();
I don't understand what element.sendKeys("")
actually does, but it's ok.
Upvotes: 1