I am using Selenium WebDriver along with Java. I am trying to access the 'Login ID' text box in that page but every time I am Logging in and out, the XPath value against the 'Login ID' text box changes so I am unable to detect the 'Login ID' text box every time with the same code.
What modifications do I need to make in my code so that I am able to access all the dynamic XPaths with a single piece of code?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…