Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XPath for web link throws error
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
I am trying to use the following simple xpath, but iam getting maintenance run error

Code:
browser("micclass:=browser").Page("micclass:=page").link("xpath:=//a[@id='addlang']/a[1]").click
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks 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


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,674 04-29-2017, 04:53 PM
Last Post: kowshik
  Web service automation:Error "could not create SSL/TLS secure channel" pranjalipalkar 0 2,641 01-16-2013, 11:40 AM
Last Post: pranjalipalkar
  Web Page expired error smita godbole 2 3,125 04-25-2012, 08:36 PM
Last Post: smita godbole
  Clicking a link in a web table Brian T. 7 10,516 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,531 05-21-2011, 12:10 PM
Last Post: sanavab

Forum Jump:


Users browsing this thread: 1 Guest(s)