Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. WebDriverWait wait = new WebDriverWait(driver, 30);
  2. WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//div[@class='portal-option-next-btn'][text()='Next']")));
  3. System.out.println(element.getText());
  4. WebElement element1 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//div[@class='portal-option-next-btn' and @title='Click to proceed to next step!']")));
  5. System.out.println(element1.getText());
  6.  
  7. driver.switchTo().frame("Frame-name");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement