I am trying to select an option(not from the dropdown) and then click on the button. The problem is I cannot find any class name, id or name or any selector to find that element. I tried “By.className=”device pcclient selected” but an error occurs “Compound class names not permitted…
Tag: click
How to click an element in Selenium WebDriver using JavaScript?
I have the following HTML: My following code for clicking “Google Search” button is working well using Java in WebDriver. I want to use JavaScript with WebDriver to click the button. How can I do it? Answer Executing a click via JavaScript has some behaviors of which you should be aware. If for ex…