【问题标题】:Store windows.performance Values In Selenium IDE在 Selenium IDE 中存储 windows.performance 值
【发布时间】: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


    【解决方案1】:

    改用执行脚本:

     Command            Target                                                   Value
     open               http://www.example.com/
     execute script     return window.performance.timing['navigationStart']     result
     echo               ${result}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多