Quality Testing

Quality is delighting customers

Finding page load time using Selenium Webdriver???

 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

Views: 292

Reply to This

Replies to This Discussion

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;
    }
   

OK sure, Thanks for yr information.

RSS

TTWT Magazine

Welcome to Quality Testing!

Keith Klain

 Director - Head of Global Test Center at Barclays

Advertisement

Submit A Job

Submit A Tool

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2013   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service