I have a problem with a Xpath I want to use in Selenium IDE.
First it is strange, that when I right-click on the element, the Selenium Options do not show up.
Second, if I inspect the element with Firebug an copy the XPath, the result is this:
//html/body/div/div[4]/new:form/div[3]/table/tbody/tr/td/table/tbody/tr[17]/td[3]/a
If I insert this path in Selenium an click on “find” I get the massage that the Locator is not found.
When I run it it says: [error] invalid Xpath[2]:(then the path)
There is no problem finding
//html/body/div/div[4]/
I think the problem is the “new:form” part but I did not get why?!
I have no access to the code. But when I remove the “new” in firebug it works.
Is there any solution for this problem?
Thanks
In XPath provided by Firebug element
formis defined in some namespace, Firebug usesnewas prefix. I have no idea does Selenium support XPath with namespaces. Anyway, you can slightly modify given XPath, using*instead ofnew:form, i.e.: