Below are three options I tried, but I’m not able to . When I tried using seleniumIDE, I got this xpath=(//button[@type='submit'])[2]

But its not working in Webdriver. Can someone help me to resolve this?

xpath="//button[@type='submit']"
xpath="//button[@type='submit'][2]"
xpath="//button[@type='submit' and @class='_2AkmmA _1LctnI _7UHT_c']"
css=("button[type='submit'][2]")



Source link https://sqa.stackexchange.com/questions/34221/how-to-locate-login-button-of---login--i-tried-in-many-w

LEAVE A REPLY

Please enter your comment!
Please enter your name here