I used Firebug's Inspect Element to capture the XPath in a webpage, and it gave me something like:
//*[@id="Search_Fields_profile_docno_input"]
I used the Bookmarklets technique in IE to capture the XPath of the same object, and I got something like:
//INPUT[@id='Search_Fields_profile_docno_input']
Notice, the first one does not have INPUT instead has an asterisk (*). Why am I getting different XPath expressions? Does it matter which one I use for my tests like:
Selenium.Click(//*[@id="Search_Fields_profile_docno_input"]);
OR
Selenium.Click(//INPUT[@id='Search_Fields_profile_docno_input']);