xpath syntax from within the elements repository

3 posts, 0 answers
  1. David
    David avatar
    25 posts
    Member since:
    May 2012

    Posted 09 May 2013 Link to this post

    I am trying to locate the parent of the current node using XPath (or any other method).  In my example, the leaf node is easily identifiable, but I am trying to locate the parent "td" node - nothing seems to work:
        ..
        //..
        ../td

    The main group of the locator locates the leaf node, then I try to add a child group filter and specify the XPath thinking that the current context will be the node I located above (see attached image).


    Any suggestions?

  2. David
    David avatar
    25 posts
    Member since:
    May 2012

    Posted 09 May 2013 Link to this post

    Well, I was able to get something done with a coded step:

    Pages.PegaDesignerStudio.CloseSpan.Parent<HtmlTableCell>().MouseClick();

    I don't love it, as it makes the test hard to read, but I am unblocked.  Seems like this might be a common scenario, will enter an enhancement request.
  3. Rodney
    Admin
    Rodney avatar
    6 posts

    Posted 14 May 2013 Link to this post

    Hi David,

    Thank you for bringing this to our attention. I've filed feature request for this behavior. You can follow its progress and vote for its inclusion in future versions of Test Studio at the follow link: Public URL

    Greetings,
    Rodney
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top