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
""" | |
Adapted from the page-objects Python package addressing two perceived shortfalls: | |
- Lack of an easy way to get at the locator for a field, for instance for waits. | |
- Extra calls to driver.find_element() without any caching. | |
The API of this module is mostly backwards compatible with page-objects, with the following differences: | |
- The `root_uri` kwarg or PageObject is deprecated in favor of `base_url`, but root_uri is still supported. | |
- The behavior where setting the attribute sends keys seems to obscure the selenium bindings for selenium, | |
and are too magical, so they are removed. | |
- The factory methods at end are removed, because I never used it with factory methods |