Forum Discussion
FindChildByXPath(".//*[@id=150952'" + * + "'-grid-container']/div[2]/div]")
You have three single quotes in there, one on each side of + * + and one after -grid-container. Do you need to match the one after -grid-container or take it out?
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.
- Marsha_R8 years agoModerator
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
- muhammadA8 years agoOccasional Contributor
Thanks Marsha. Still have the same issue
var obj = Sys.Browser("*").Page("*").FindChildByXPath(".//*[@id='150952'" + * + "'-grid-container']/div[2]/div]");
- baxatob8 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")]
Related Content
Recent Discussions
- 2 days ago