My Xpath is correct & no iFrame and I can locate element in Chrome console but my program still fails. I have used explicit wait also.
website http://newtours.demoaut.com/ I am trying to locate login page and send login id.
<tr>
<td align="right"><font face="Arial, Helvetica, sans-serif" size="2">User
Name: </font></td>
<td width="112">
<input type="text" name="userName" size="10">
</td>
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8e790b8a-7e32-401d-84d8-6217c2d4f351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'input[name=userName]'
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ec94d2a9-a13d-4dee-9373-ffb67c228110%40googlegroups.com.