This is a migrated thread and some comments may be shown as answers.

Xpath: Support Relative Path?

3 Answers 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Waylon
Top achievements
Rank 1
Waylon asked on 06 Jun 2011, 06:08 PM
Hi Team,

Do we support the relative path of xpath instead of absolute path?
Because absolute path not stable enough, page's small change will cause case failed, so I'd like to use relative path, seem I putted the relative path, the element can not be found.
Absolute path: /html[1]/body[1]/div[10]/div[2]/div[1]/div[3]/div[1]/div[1]/ul[1]/li[1]/a[1]
Relative path: //div[@id='nameplate-header']/div[1]/ul/li[1]/a

Thanks
Waylon

3 Answers, 1 is accepted

Sort by
0
Waylon
Top achievements
Rank 1
answered on 09 Jun 2011, 06:04 PM
I have found the way to solve this problem via Telerik, thanks
0
Michael
Top achievements
Rank 1
answered on 21 Oct 2011, 03:07 PM
Can you share your solution to the relative path issue. Thanks
0
Keith Hill
Top achievements
Rank 1
answered on 08 Nov 2011, 10:02 PM
Yes, please, share the solution.   --thanks
Tags
General Discussions
Asked by
Waylon
Top achievements
Rank 1
Answers by
Waylon
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Keith Hill
Top achievements
Rank 1
Share this question
or