When Selenium Webdriver fails to click on any element due to a problem, JavaScriptExecutor is used. Selenium Webdriver was used to run the JavaScript.