Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebDriverWait wait = new WebDriverWait(driver, 30);
- WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//div[@class='portal-option-next-btn'][text()='Next']")));
- System.out.println(element.getText());
- WebElement element1 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//div[@class='portal-option-next-btn' and @title='Click to proceed to next step!']")));
- System.out.println(element1.getText());
- driver.switchTo().frame("Frame-name");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement