Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Clicking on an element using JS executor
public void clickElement(WebElement myElement) {
((JavascriptExecutor) driver).executeScript("arguments[0].click();", myElement);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment