Apostrophe in XPath
Im using a "FindChildByXPath" where the expression have an apostrophe object.FindChildByXPath("//div[text()='XY'Z']"); I tried the solution in previous forum -https://community.smartbear.com/t5/TestComplete-Functional-Web/Using-FindChildByXPath-with-apostrophe-in-XPath/td-p/116018 Unfortunately that doesnt work.Solved1.5KViews0likes2CommentsXpath Get last matching result
I have an xpath expression like this: //td[@div='id']/nobr[text()='TotalAR:'] Upon checking on the inspector element there are multiple matches, both on/td[@div='id'] andnobr[text()='TotalAR:']. I only need to get the last result as im sure thats what i need. Basically im trying to do something like this: //td[@div='id'][last()]/nobr[text()='TotalAR:'] how can i get the last result ?Solved1.5KViews0likes1Comment