Open http://www.canadapostsurvey.ca/, try to locate the "Next" navigation button click or submit it using xpath or cssselector or other method but does not work. (updates: found an alternative solution not using any find element methods but would like to hear from others)
Have tried different locator properties but none of it works, any ideas?
new WebDriverWait(driver,5).until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\"nav-controls\"]/input")));
driver.findElement(By.xpath("//*[@id=\"nav-controls\"]/input")).click();`
html code:
<div id="nav-controls" class="btn-container nav-center">
<input type="submit" name="_NNext" class="mrNext" style="" value="Next" alt="Next">
</div>
Screenshot of the page: