muhammadA
8 years agoOccasional Contributor
Finding object by using dynamic xpath, using Partial Content text
Hi all,
I have following dynamic xpath's
.//*[@id='1509527131388-grid-container']/div[2]/div
.//*[@id='1509528020936-grid-container']/div[2]/div
.//*[@id='1509528970483-grid-container']/div[2]/div
.//*[@id='1509528970483-grid-container']/div[2]/div
I am trying to find the object by
var obj = Sys.Browser("*").Page("*").FindChildByXPath(".//*[@id=150952'" + * + "'-grid-container']/div[2]/div]");
showing as syntax error. Can you please help me to find the error