Commonly used methods :
WebDriver driver = new FirefoxDriver();
driver.get("www.gmail.com");
driver.getcurrentURL();
driver.getpageSource();
driver.getTitle();
5 ways to refresh browser :
driver.navigate().refresh();
Implicit time out:
WebDriver driver = new FirefoxDriver();
driver.get("www.gmail.com");
driver.getcurrentURL();
driver.getpageSource();
driver.getTitle();
5 ways to refresh browser :
driver.navigate().refresh();
driver.findElement(By.name("s")).sendKeys(Keys.F5);
driver.get(driver.getCurrentUrl());
driver.navigate().to(driver.getCurrentUrl());
driver.findElement(By.name("s")).sendKeys("\uE035");
Implicit time out:
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
No comments:
Post a Comment