Selenium RC - 用户扩展

发布于 2024-09-30 14:38:46 字数 504 浏览 0 评论 0原文

计划使用 http://wiki.openqa.org 使用“计时器扩展”来计算页面响应时间/显示/SEL/定时器+扩展

我已复制“User-Extension.js”中的代码并更新了 Selenium RC 中的路径。

当我使用 Eclipse 执行以下代码时,收到以下错误消息“method timeStart(string) is undefined”。

System.out.println("测试状态");

timerStart("登录页面");

硒.open(BASE_URL_1);

selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);

timeStop("登录页面");

如何让eclipse识别这个新方法?

-巴拉特

Planning to calculate page response time using "Timer Extension" using http://wiki.openqa.org/display/SEL/Timer+Extension.

I have copied the code in "User-Extension.js" and updated the path in Selenium RC.

When I execute following code using eclipse, I am getting following error message "method timerStart(string) is undefined".

System.out.println("Test Strated");

timerStart("LoginPage");

selenium.open(BASE_URL_1);

selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);

timerStop("LoginPage");

How to make eclipse recognize this new method ?

-Bharath

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别在捏我脸啦 2024-10-07 14:38:46

新方法已添加到 Selenium 的原型中。所以我认为你必须这样做:

selenium.timerStart("LoginPage");

The new method is added to Selenium's prototype. So I think you would have to do:

selenium.timerStart("LoginPage");
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文