【发布时间】:2021-05-20 08:20:53
【问题描述】:
这是How to capture page load times in Selenium-IDE using the app.telemetry page speed monitor的轻微重复
但是,该帖子中的答案似乎不起作用(或不再起作用),可能是因为 Selenium IDE 中的 storeEval 命令似乎不再存在。
当 Selenium IDE 在网页中移动时,我正在尝试检索网页的某些 windows.performance 值。
我试过了:
Command 'open' > Target 'www.url.com'
Command 'store value' > Target window.performance.timing['navigationStart'] > Value 'result'
Command 'echo' > Target ${result}
但我明白了:
Warning implicit locators are deprecated, please change the locator to id=window.performance.timing['navigationStart']
上面的行不通,显然它不是一个 id。
我是否使用了错误的命令?还是必须输入其他目标详细信息?还是完全可以做到?
谢谢!
【问题讨论】:
标签: selenium dom performance-testing selenium-ide