I have found this to be a more reliable way of finding the login button: findElement(By.xpath(".//input[@data-testid='royal_login_button']"))