开发者

Not able to detect a href component in Selenium RC

I have the following link 'Test' in my application.

<div class="tabUnselectedText" align="center"> <a href="javascript:renderPage('mainForm:consoleBeanId.3','Test' , 'testdetails.faces');">Test</a> </div>

When I tried Selenium IDE it gives me following code. The same code does not work with RC . Please help me out with this

selenium.click("link=Test"); // code generated with Selenium IDE and same does not work with RC. It says element is not

One more case:

<div class="tabUnselectedText" align="center"> <a href="javascript:renderPage('mainForm:consoleBeanId.1','Notifications' , 'notifications.faces');">Notifications</a> </div>

15:45:04.627 INFO - Command request: click[link=Test, ] on session 2d985d284 6694d888ee13a986dc8cf67 15:45:04.658 INFO - Got result: ERRO开发者_JAVA百科R: Element link=Test not found on sessio n 2d985d2846694d888ee13a986dc8cf67


Xpath: //div[@class='tabUnselectedText']/a


Try with Selenium.ClickAt()

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜