Tag 'tag' inside 'A' tag??
Posted: Sat Jan 29, 2011 11:41 am
I have strange problem...
I defined RxPath for my table relative to tbody tag:
but it seems that this goes only with left aligned values in table, this RxPath cannot find my right aligned values, such as integer, double, unsigned types...
I used ranorex spy to determine path to right aligned elements and it seems that those elements have additional 'tag' after 'a' tag. This is what ranorex spy have generated:
I then tried to make RxPath like this one to search only right aligned elemetns:
But when I run tests in Nunit, Ranorex.CapabilityNotSupportedException is thrown with following text: The element does not support the required capability 'atag'.
That search for values MUST be relative to tbody tag, so I cannot use Host.FindSingle(...);
But something like this:
How can I find those right aligned values in table?
Edit: Heh, I have solved it like a minute after posting, I just used another element to search for, I used WebElement insteed ATag.
I have now another question, can I somehow make my RxPath universal for both left and right aligned elemetns?
Regards,
Vajda Vladimir
I defined RxPath for my table relative to tbody tag:
Code: Select all
tr/td/a[@innertext='{0}']/../../td[{1}]/a[1]
I used ranorex spy to determine path to right aligned elements and it seems that those elements have additional 'tag' after 'a' tag. This is what ranorex spy have generated:
Code: Select all
tr[21]/td[2]/a/tag[@innertext='12']
Code: Select all
tr/td/a[@innertext='{0}']/../../td[{1}]/a[1]/tag
That search for values MUST be relative to tbody tag, so I cannot use Host.FindSingle(...);
But something like this:
Code: Select all
ATag factUri = ReportFactoryAddInGuiElements.ReportPane.TableBody.FindSingle( "tr/td/a[@innertext='integer item']/../../td[2]/a[1]/tag", 600000);
factUri.Click(factUri.Element.Location);
Edit: Heh, I have solved it like a minute after posting, I just used another element to search for, I used WebElement insteed ATag.
I have now another question, can I somehow make my RxPath universal for both left and right aligned elemetns?
Regards,
Vajda Vladimir