如何解决在 Selenium IDE 中存储 windows.performance 值
这是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。
我是否使用了错误的命令?或者必须输入额外的目标详细信息?还是完全可以做到?
谢谢!
解决方法
改用执行脚本:
Command Target Value
open http://www.example.com/
execute script return window.performance.timing['navigationStart'] result
echo ${result}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。