I have page where below is HTML of submi button.
<div id="submitContainer"><button type="submit" class="large"><span><strong> Create Account </strong></span></button></div>
As you can see, button do not have ID and its located inside div. How do I click on this button?
Below are few methods I have tried.
driver.findElement(By.id("submitContainer")).click();
driver.findElement(By.xpath("//*[@id='submitContainer']/button/span/strong")).click();
driver.findElement(By.tagName("Create Account")).click();
driver.findElement(By.className("large")).click();