Forum Discussion

cbrundell's avatar
cbrundell
Occasional Contributor
11 years ago

xPath in test script error message

I have a website with a dynamic grid so can't select the id of the object, I have been trying to find a way to select this and I have come across xPath as a method however I am having trouble with this.



I have recorded my test rather than scripting from the beginning, it has been recorded in VB and then I have found the object in firefox developer tools and right clicked and copied the xPath. Now this is not exactly what I need it to be so I have amended the details to search on the details that remain static, however when I do this and try to run the test I get an error message. The error is as follows:



error 100: syntax error while processing "/"



Can anyone advise why I would be getting this issue? The amended line is as follows:



//*[@value="7"]



I will add that this is an object in a grid and it is div type, not sure if this makes a difference at all