开发者

Selenium RC - User Extension

开发者 https://www.devze.com 2023-01-23 13:03 出处:网络
Planning to calculate page response time using \"Timer Extension\" using http://wiki.openqa.org/display/SEL/Timer+Extension.

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(st开发者_C百科ring) 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


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

selenium.timerStart("LoginPage");
0

精彩评论

暂无评论...
验证码 换一张
取 消