Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af911bb

Browse files
authored
Update navigating.rst (baijum#111)
1 parent 656a8b2 commit af911bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/navigating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Once you've finished filling out the form, you probably want to submit it. One
115115
way to do this would be to find the "submit" button and click it::
116116

117117
# Assume the button has the ID "submit" :)
118-
driver.find_element_by_id("submit").click()
118+
driver.find_element(By.ID, "submit").click()
119119

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

0 commit comments

Comments
 (0)