Forum Discussion
Hi Marsha,
.//*[@id='15095 "27131388" -grid-container']/div[2]/div
.//*[@id='15095 "28020936" -grid-container']/div[2]/div
.//*[@id='15095 "28970483" -grid-container']/div[2]/div
.//*[@id='15095 "28970483"-grid-container']/div[2]/div
The one in quatations is keeping changing , I want everything else into I want find the object containing
.//*[@id='15095 "*******"-grid-container']/div[2]/div.
Please verify http://ui-grid.info/
I am trying to get the Values from the upper grid present in the page.
See attached. I have marked the matching pairs of quotes in blue and the mismatched one in red.
You need another single quote to match the one marked in red. I believe it needs to go here
id='150952
- muhammadA7 years agoOccasional Contributor
Thanks Marsha. Still have the same issue
var obj = Sys.Browser("*").Page("*").FindChildByXPath(".//*[@id='150952'" + * + "'-grid-container']/div[2]/div]");
- baxatob7 years agoCommunity Hero
Hi,
XPath won't recognize "*" as a wildcard.
You should use another approach. E.g. using the contains() function:
.//div[contains(@id, "150952") and contains(@id, "grid-container")]
- AlexKaras7 years agoChampion Level 3
Hi,
As a side note: https://community.smartbear.com/t5/TestComplete-Functional-Web/Using-Xpath-in-TestComplete/m-p/151235#M30757
Related Content
Recent Discussions
- 20 hours agovladd1