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

@debarati.r
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
//name='loginName']
# Future State: Adding a Tag, an Access Attribute, and an opening Bracket
//input[@name='loginName']

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