I have been attempting to click on a specific button using SELENIUM & JAVA but I keep encountering this error message:
Expected condition failed: waiting for element to be clickable: By.xpath: //*[@id="documentation"]/div/div[2]/div/button (tried for 10 second(s) with 500 milliseconds interval)
The button in question looks like this:
<button type="button" class="btn btn-sm btn-link add-row">Upload FILE</button>
Here is the XPATH for the button:
//*[@id="documentation"]/div/div[2]/div/div/button
These are the steps I followed:
WebDriverWait wait10735 = new WebDriverWait(driver,Duration.ofSeconds(10));
JavascriptExecutor executor3735 = (JavascriptExecutor)driver;
WebElement elementCat4735=wait10735.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[@id=\"documentation\"]/div/div[2]/div/button")));
Where am I making a mistake?