Xpath: Support Relative Path?

4 posts, 0 answers
  1. Waylon
    Waylon avatar
    10 posts
    Member since:
    May 2011

    Posted 06 Jun 2011 Link to this post

    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
  2. Waylon
    Waylon avatar
    10 posts
    Member since:
    May 2011

    Posted 09 Jun 2011 Link to this post

    I have found the way to solve this problem via Telerik, thanks
  3. Michael
    Michael avatar
    2 posts
    Member since:
    Aug 2011

    Posted 21 Oct 2011 Link to this post

    Can you share your solution to the relative path issue. Thanks
  4. Keith Hill
    Keith Hill avatar
    2 posts
    Member since:
    Aug 2009

    Posted 08 Nov 2011 Link to this post

    Yes, please, share the solution.   --thanks
Back to Top