开发者

selenium rc unable to click on a link

I'm facing a kinda weird开发者_开发百科 problem today. Selenium appears to click on a link in one test case, but, ignores the same link in the subsequent case. This happens with any permutation-combination of test cases. Whichever case run 2nd, fail due to the above problem. can anyone suggest a solution for this?? I've tried selenium.click and selenium.clickat. combination of mouseup+mousedown doesn't work even at the first go. selenium.fireevent also doesn't seem to make any difference.

Really stuck at this. Can anyone please help????

Thanks and Regards,

Vamyip


Does the link open a new window? If so, I would try the selectWindow("myMainWindow") command to be sure the proper page has the focus.


Causes may be

a) the element has not shown in the page before that you had executed the case

sugg- wait for that element waitFor("link=mylink") and then call selenium.click("link=mylink")

b)there may be spelling error or locator not given properly

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜