Use the WebDriverWait conditions.
WebDriverWait wait = new WebDriverWait(yourWebDriver, 5);
wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//xpath_to_element")));
Webdriver will wait for 5 seconds for your element to be able to be clicked.
More Related Contents:
- How to get selenium to wait for ajax response?
- 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
- Can Selenium interact with an existing browser session?
- How to get HTTP Response Code using Selenium WebDriver
- How to get attribute of element from Selenium?
- How can I get browser to prompt to save password?
- What security risks exist when setting Access-Control-Allow-Origin to accept all domains?
- Unable to use Selenium to automate Chase site login
- Is there a version of Selenium WebDriver that is not detectable?
- Checking if element exists with Python Selenium
- Modify Address Bar URL in AJAX App to Match Current State
- API Gateway CORS: no ‘Access-Control-Allow-Origin’ header
- Many process of Google Chrome (32 bit)
- Can an AJAX response set a cookie?
- Exception handling in JSF ajax requests
- How to launch all Karate features setting up which browser to use as an external maven variable
- Equivalent of waitForVisible/waitForElementPresent in Selenium WebDriver tests using Java?
- Where can I find a definitive Selenium WebDriver to Firefox Compatibility Matrix? [closed]
- How to make a SPA SEO crawlable?
- How to execute Selenium Chrome WebDriver in silent mode?
- selenium grid listening on node port instead of hub port
- What is JavaScriptExecutor in Selenium?
- Ajax request problem: error 80020101
- Is the anchor part of a URL being sent to a web server?
- How to rotate various user agents using selenium python on each request
- Web sockets make ajax/CORS obsolete?
- Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at
- How to block external http requests? (securing AJAX calls)
- Ajax update and submission using h:commandButton