Advertisement
Guest User

Untitled

a guest
May 28th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2. import org.openqa.selenium.By;
  3. import org.openqa.selenium.WebDriver;
  4. import org.openqa.selenium.WebElement;
  5. import org.openqa.selenium.support.ui.ExpectedConditions;
  6. import org.openqa.selenium.support.ui.WebDriverWait;
  7.  
  8. public class zad2 {
  9.  
  10.  
  11. private WebElement q;
  12. public WebDriver driver;
  13. WebDriverWait wait;
  14.  
  15.  
  16. public boolean assertTitle(By by) throws Exception{
  17. boolean kek = false;
  18. WebElement result = driver.findElement(by);
  19. if(result != null) kek = true;
  20. return(kek);
  21. }
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement