First store that element in object, let’s say element
and then write following code to click on that hidden element:
JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("arguments[0].click();", element);
More Related Contents:
- How can I extract the text of HTML5 Constraint validation in https://www.phptravels.net/ website using Selenium and Java? [duplicate]
- What is the difference between ChromeDriver and WebDriver in selenium?
- Element MyElement is not clickable at point (x, y)… Other element would receive the click
- How to switch to the new browser window, which opens after click on the button?
- When to use explicit wait vs implicit wait in Selenium Webdriver?
- How to handle authentication popup with Selenium WebDriver using Java
- How to gettext() of an element in Selenium Webdriver
- pageLoadTimeout in Selenium not working
- The type FluentWait is not generic; it cannot be parameterized with arguments error for FluentWait Class through Selenium and Java
- Equivalent of waitForVisible/waitForElementPresent in Selenium WebDriver tests using Java?
- javascript error: Failed to execute ‘elementsFromPoint’ on ‘Document’: The provided double value is non-finite
- File Upload using Selenium WebDriver and Java Robot Class
- org.openqa.selenium.WebDriverException: unknown error: call function result missing ‘value’
- Check if element is clickable in Selenium Java
- Selenium WebDriver and DropDown Boxes
- What is difference between Implicit wait and Explicit wait in Selenium WebDriver? [duplicate]
- java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter. when using Selenium-Java 3.5.1 or above
- Selenium InternetExplorerDriver doesn’t get focus on the window
- “OsProcess checkForError : CreateProcess error=193, %1 is not a valid Win32 application” while starting Internet Explorer through Java and Selenium
- How to set default download directory in selenium Chrome Capabilities?
- How to make Selenium wait until an element is present?
- Why do some elements exist but not interactable/displayed?
- How to perform Basic Authentication for FirefoxDriver, ChromeDriver and IEdriver in Selenium WebDriver?
- Selenium Webdriver – Stale element exception when clicking on multiple dropdowns while HTML DOM doesn’t change
- How to open a link in new tab (chrome) using Selenium WebDriver?
- How do I load a javascript file into the DOM using selenium?
- How to wait until an element no longer exists in Selenium
- How to scroll a specific DIV using Selenium WebDriver with Java?
- How to wait for an alert in Selenium webdriver ? [duplicate]
- UnreachableBrowserException Caused by: java.lang.NullPointerException when “webdriver.firefox.marionette” is used