Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.openqa.selenium.By;
- import org.openqa.selenium.WebDriver;
- import org.openqa.selenium.WebElement;
- import org.openqa.selenium.support.ui.ExpectedConditions;
- import org.openqa.selenium.support.ui.WebDriverWait;
- public class zad2 {
- private WebElement q;
- public WebDriver driver;
- WebDriverWait wait;
- public boolean assertTitle(By by) throws Exception{
- boolean kek = false;
- WebElement result = driver.findElement(by);
- if(result != null) kek = true;
- return(kek);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement