I have a button I want to click, Selenium isn't giving me an error just stops. I've tried both xpath and css and it just stops.
<a ng-click="login();" ng-disabled="loginForm.$invalid || submitting == true" ng-class="submitting == true ? 'm-progress' : ''" class="btn btn-primary btn-lg btn-block pink button" tabindex="4">sign in</a
This is the code for the button. And these are the two attempts I've tried:
driver.findElement(By.xpath(".//*[@id='ngdialog1']/div[2]/form/div[3]/div[1]/div[2]/a")).click();
Or with CSS:
driver.findElement(By.cssSelector(".btn.btn-primary.btn-lg.btn-block.pink.button")).click();
I am new to selenium so I could be doing it wrong. Any advice would be appreciated.