Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

You can't click hidden elements with Selenium. However, you can trigger the click through Javascript, as found on SOas found on SO:

JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("arguments[0].click();", element);

You can't click hidden elements with Selenium. However, you can trigger the click through Javascript, as found on SO:

JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("arguments[0].click();", element);

You can't click hidden elements with Selenium. However, you can trigger the click through Javascript, as found on SO:

JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("arguments[0].click();", element);
Source Link
FDM
  • 5.9k
  • 1
  • 17
  • 34

You can't click hidden elements with Selenium. However, you can trigger the click through Javascript, as found on SO:

JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("arguments[0].click();", element);