use of org.utils.ChromePagePerformanceUtil in project selenium_java by sergueik.
the class ChromePagePerformanceTest method testUtil.
// @Ignore
@Test
public void testUtil() {
ChromePagePerformanceUtil pageLoadTimer = ChromePagePerformanceUtil.getInstance();
double pageLoadTime = pageLoadTimer.getLoadTime(driver, baseURL, elementSelector);
System.out.println("Page Load Time: " + pageLoadTime);
Map<String, Double> pageElementTimers = pageLoadTimer.getPageElementTimers();
if (conn != null) {
Set<String> names = pageElementTimers.keySet();
for (String name : names) {
insertData(name, pageElementTimers.get(name));
}
}
}
Aggregations