Selenium Interview Question | Selenium Forum
M
Posted on 24/05/2016
Hi Ashish,

I am facing in interview they always ask about the xpaths I answer properly but they always give me a format of xpath like
"//input/div//span" and ask how it will work. I have never seen that type of xpath where we use two relative signs(//). Can you please let me know how it work.

Thanks in advance.

M
Replied on 24/05/2016

this is a partial xpath.


http://www.softwaretestinghelp.com/using-selenium-xpath-and-other-locators-selenium-tutorial-5/

http://docs.oracle.com/javaee/1.4/tutorial/doc/JAXPXSLT3.html


M
Replied on 25/05/2016

i didnt find answers to the question in the links mentioned. Nowhere it is mentioned 2 // signs in xpaths. Please let us know the answer to this.


M
Replied on 25/05/2016

i cannot explain here but its explained in module 12 and 13.