Linux服务器如何调用并执行window.performance.timing接口?代码如下:url = urllink driver = webdriver.PhantomJS() driver.get(url)navigationStart =driver.execute_script("returnwindow.performance.timing.navigationStart") loadEventEnd =driver.execute_script("return window.performance.timing.loadEventEnd")backendPerformance = loadEventEnd - navigationStart printbackendPerformance / 1000部署在Linux服务器后运行,结果如下请问如何调用实现?
添加回答
举报
0/150
提交
取消