How do i get the innertext that has same element id - i am trying to get the this value [@innertext='1640737']
code -
WebElement elem ="/dom[@page='xx.cfm']/body/table[2]/tbody/tr/td[2]/table/tbody/tr/td[2]/table[2]/tbody/tr/td[@id='TD11']/strong";
_contactId = elem.InnerText;
----- element returned "Public" but i am trying to retreived '1640737'
innertext value that has multiple strong attribute
innertext value that has multiple strong attribute
You do not have the required permissions to view the files attached to this post.
Tipu
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: innertext value that has multiple strong attribute
The element you are trying to get is the second "strong" element, right? Why not just use an index?
See the User Guide for more info:
http://www.ranorex.com/support/user-gui ... xpath.html
Regards,
Alex
Ranorex Team
See the User Guide for more info:
http://www.ranorex.com/support/user-gui ... xpath.html
You are using Ranorex for longer than a year now, right? Do you really think that you are still a beginner?omayer wrote:beginner
Regards,
Alex
Ranorex Team
Re: innertext value that has multiple strong attribute
Thank you Alex, found the solved by using expression
/strong[@innertext~'[0-9]']";
-Thank you,
Somayer
/strong[@innertext~'[0-9]']";
-Thank you,
Somayer
Tipu