JavaScriptExecutor in
Selenium WebDriver:
In general, we do click on an element using click() method in
Selenium.
Sometimes web controls don’t react well against selenium commands and we may face issues with the above statement (click()). To overcome such kind of situation, we use JavaScriptExecutor interface.