Issue
Trying to click in element with a correct locator but i have problem is located here WebDriverWait(driver, 120)
saying this error message The constructor WebDriverWait(WebDriver, int) is undefined
WebElement button = (new WebDriverWait(driver, 120)).until
(ExpectedConditions.elementToBeClickable(By.xpath("")));
button.click();
Solution
@cbeb7f9edf , in the latest version of Selenium, you should create the WebDriverWait object as below:
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(120));
Answered By - ketanvj
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.