Linux服务器如何调用并执行window.performance.timing接口?
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 print
backendPerformance / 1000
部署在Linux服务器后运行,结果如下
请问如何调用实现?
回答:
你这个报错明显是拼写错误
以上是 Linux服务器如何调用并执行window.performance.timing接口? 的全部内容, 来源链接: utcz.com/a/162513.html