开发者

Selenium RC - User 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜