Xpath in JDA Login Portal Not able to identify web element

Sometimes Web Element is getting identified- so XPATH works fine - Other times it is giving error- On the same Code-

Open JDA WMS Browser Login Page

Scenario Outline:
when I open web browser
then I navigate to in web browser
then I open JDA Screen “login”
then I type “SUPER” in element “xPath://name=‘loginName’]” in web browser

Great question!
Let me grab a snippet from Cycle University that may be helpful:

In this case, your xPath appears to have a few syntax errors.

# Current State
# Future State: Adding a Tag, an Access Attribute, and an opening Bracket

If you haven’t read this Knowledge Base article yet, I’d recommend diving into How to make better xpaths for web tests.

Many Thanks for the Input

1 Like