Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stateful_browser.py: add page, url, and form properties
Closes #175. The most convenient way to access the page, url, and form objects is to use properties, which are mapped to the appropriate getter functions using `property`. * get_current_page -> page property The previous method name was simply too long for such a commonly used function. The "current" adjective added no extra specificity. * get_current_form -> form property This is changed for clarity. What is the "current" form if there are multiple forms on the page? Instead, we make it clearer by describing it as the "selected" form. * get_url -> url property This is just an elimination of the get_ prefix and use a property. For backwards compatibility, the older method names remain as aliases.
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters