Skip to content

Commit

Permalink
Update docs for Form.choose_submit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreg committed Dec 7, 2022
1 parent beb2eaa commit 7b1609c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mechanicalsoup/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,10 @@ def new_control(self, type, name, value, **kwargs):
def choose_submit(self, submit):
"""Selects the input (or button) element to use for form submission.
:param submit: The bs4.element.Tag (or just its *name*-attribute) that
identifies the submit element to use. If ``None``, will choose the
first valid submit element in the form, if one exists.
:param submit: The :class:`bs4.element.Tag` (or just its
*name*-attribute) that identifies the submit element to use. If
``None``, will choose the first valid submit element in the form,
if one exists.
To simulate a normal web browser, only one submit element must be
sent. Therefore, this does not need to be called if there is only
Expand Down

0 comments on commit 7b1609c

Please sign in to comment.