Skip to content

Commit

Permalink
Update navigating.rst (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitrust authored May 21, 2023
1 parent 656a8b2 commit af911bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/navigating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Once you've finished filling out the form, you probably want to submit it. One
way to do this would be to find the "submit" button and click it::

# Assume the button has the ID "submit" :)
driver.find_element_by_id("submit").click()
driver.find_element(By.ID, "submit").click()

Alternatively, WebDriver has the convenience method "submit" on every element.
If you call this on an element within a form, WebDriver will walk up the DOM
Expand Down

0 comments on commit af911bb

Please sign in to comment.