Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • Please show us what the value is of i.e cpDvUser Commented Apr 5 at 7:54
  • Does this question helps you: stackoverflow.com/questions/75485006/… ? Commented Apr 5 at 7:55
  • Hi @SiebeJongebloed I have added the xpaths above //input[@id='username'] for cpDvUser. I went through the suggested question, didnt help me or If you feel I missed something, kindly add. Thanks ! Commented Apr 5 at 10:21
  • 1
    The XPath is valid. You shouldn't need to find the form and then search from there when the elements have IDs. Have you tried removing the form step and then using the later locators? Do they work? Try something simple for username, (By.ID, "username") instead of the XPath. I'm wondering if you didn't copy/paste that locator from somewhere and got a bad character in the string that isn't visible. Try retyping the cpDvForm locator from scratch.
    – JeffC
    Commented Apr 5 at 15:06
  • 1
    I have no idea. I've tested the XPaths that you provided in the Chrome devtools and get no errors on any of them. The only thing I can think of is what I mentioned earlier... that some stray hidden character got inserted into the locator so that we can't see it but it's causing the error.
    – JeffC
    Commented Apr 9 at 17:35