Last active
February 15, 2021 05:37
-
-
Save ultimate-qa2/d20088ab94270a6383c763770ce3929d to your computer and use it in GitHub Desktop.
Clicking on an element using JS executor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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