website: https://www.etoro.com/login
I am trying to click on Sign in button by xpath :
Code trial:
driver.find_element_by_xpath("/html/body/ui-layout/div/div/div[1]/login/login-sts/div/div/div[1]/form/div/div[4]/button").click()
But failed to do so. Tried by css and by class also but unable to login.
When I am trying to login manually then it login successfully but while through selenium python it failed to do so.
Page only showing an error: "An error occurred ,please try again" Is there any suggestions, what to do or what I am not getting here?
<button automation-id="login-sts-btn-sign-in" ng-click="loginCtrl.login(loginForm)" class="e-btn-big wide dark pointer">Sign in</button>
driver.find_element_by_xpath("/html/body/ui-layout/div/div/div[1]/login/login-sts/div/div/div[1]/form/div/div[4]/button").click()
Expected result would be a successfull login and render to the dashboard of my account.
