I've created a small script to go to reddit login page enter username and password. My last step is to click the Log In button but my xpath is unable to find it and click the button. I've tried various different ways but none seem to be working.
Below is what i've tried
driver.findElement(By.xpath("//input[@type='submit']")).click();
driver.findElement(By.xpath("//button[@class='submit']")).click();
driver.findElement(By.className("submitButton")).click();
Below is what chrome inspect gives
<button class="AnimatedForm__submitButton m-full-width" type="submit">
Log In
</button>