Quality is delighting customers
Hi Folks,
I would like to know as how to find out the accurate time taken to load a page in selenium webdriver.Could anybody tell me pls.
Thanks,
Suresh
Tags:
Permalink Reply by vamshi on July 20, 2012 at 3:24pm one of my friend said to try this:
>I would like to know as how to find out the accurate time taken to load a page in selenium webdriver.. any Idea?
u can use Thread.sleep(3000); or webdriver having code like :
public static boolean waitForElement(WebDriver browser,final String xpath){
WebElement myDynamicElement = (new WebDriverWait(browser, 60))
.until(new ExpectedCondition<WebElement>(){
@Override
public WebElement apply(WebDriver d) {
return d.findElement(By.xpath(xpath));
}});
return false;
}
Director - Head of Global Test Center at Barclays
© 2013 Created by Quality Testing.