Skip to content

Instantly share code, notes, and snippets.

View cnparmar's full-sized avatar
🎯
Focusing

Chandresh Parmar cnparmar

🎯
Focusing
View GitHub Profile
@cnparmar
cnparmar / gist:49d5318fdd489ef8f0f82331e8eb4a7b
Created February 25, 2020 07:04
Unable to click on element using selenium normal click.
Hi,
I am using Selenium 4 alpha to run my tests and facing an issue. The issue is like at quite a few places normal selenium click (i.e. driver.findElement("").click()) doesn't work.
If I use, javascriptExecute interface and try to click on it using executeScript(), then it works fine.
Element Locator -
<a href="{someURL}">Test Central</a>
Selenium Code -
WebDriver driver = new SafariDriver();