I have a form that contains some input types 'text' which selenium finds and populates ok. However it cannot find the input type submit on form, the structure looks somelike this this:
<div>
<div>
<form>
<div>other elements are here....</div>
<p> <input class="btn btn-success" type="submit" name="yt0" value="Register Now" /></p>
</form>
</div>
<div>
I have tried a few methods the latest of which is:
driver.findelement(By.name("yt0")).click();
also tried:
driver.findelement(By.name("yt0")).submit();
I can see the element clearly on the page, and selenium has entered all the text needed for the elements above the submit.
Is it possible that Selenium cannot find the submit because its contained in a hierarchy of DIVs? Thanks