Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XPath for web link throws error
#2
Solved: 11 Years, 3 Months, 1 Week ago
HI srselva,

Please find the below code. Just you need a little bit tweak in your xpath definition.

Code:
Browser("micclass:=browser").Page("micclass:=page").link("xpath:=//font[@id='addlang']/a[1]").click
or you can click on the link using below xpath too
Code:
Browser("micclass:=browser").Page("micclass:=page").link("xpath:=//a[contains(text(),'your link text value')]").click

Let me know if you need any more information.
Thanks,
SUpputuri
Reply


Messages In This Thread
XPath for web link throws error - by srselva - 12-08-2012, 12:04 AM
RE: XPath for web link throws error - by supputuri - 12-11-2012, 12:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  click each web link in a page using Index or other method in QTP smeijer 13 24,602 04-29-2017, 04:53 PM
Last Post: kowshik
  Web service automation:Error "could not create SSL/TLS secure channel" pranjalipalkar 0 2,633 01-16-2013, 11:40 AM
Last Post: pranjalipalkar
  Web Page expired error smita godbole 2 3,116 04-25-2012, 08:36 PM
Last Post: smita godbole
  Clicking a link in a web table Brian T. 7 10,501 01-02-2012, 02:34 PM
Last Post: vinod123
  I want to not fail on handeled run error in web service test sanavab 4 4,516 05-21-2011, 12:10 PM
Last Post: sanavab

Forum Jump:


Users browsing this thread: 1 Guest(s)