Assume the following button is present on a page:
<input type="submit" name="next_btn" value="Next" onclick="gonext();" id="btnNext">
Additionally, when clicked manually, the page takes ~3-6 seconds to load and display new data.
I've tried respectively:
driver.find_element_by_name("next_btn").submit()
and
driver.find_element_by_name("next_btn").click()
Neither does anything in this case, so I figured I could try and execute the gonext()
JavaScript, only to be met by an attribute error as such: AttributeError: 'NoneType' object has no attribute 'submit
- have also tried with .click()
.
Thanks in advance!