Skip to main content

Extension for page factory.

Project description

An extension for PageFactory class (selenium-page-factory)

Main class:

ExtendedPageFactory(AssertPageMixin, NavLocatorsMixin, FormButtonsMixin, PageFactory)

Mixins:

AssertPageMixin (title) -> Checks if the current page has the same title as given. The "assert_page" method verifies if the title of the html page is the same as the title property of this class. It accepts a string as its argument title_extension which will be concatenated to the title property.

NavLocatorsMixin (nav_locators) -> Provides a class attribute to be added to PageFactory attribute locators. This is a convenient way to add common navbar locators to several Page classes.

FormButtonsMixin (form_buttons) -> Provides a list of form inputs such as save (value='Save'), save_and_new ( value='Save & New'), delete (value='Delete') etc. as a class attribute (form_buttons=[save, save_and_new, delete]). If a tuple is given the second value indicates the locator. For example if the cancel button is in reality a link: <a href="">Cancel</a>, add (cancel, "LINK_TEXT") to form_buttons.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extended-selenium-page-factory-0.7b0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file extended-selenium-page-factory-0.7b0.tar.gz.

File metadata

File hashes

Hashes for extended-selenium-page-factory-0.7b0.tar.gz
Algorithm Hash digest
SHA256 3d9028662a62aa410397a2c35acb63621da7ab276855426fff2ca3b9d4591873
MD5 6c27b7ed2f78f3d75dadef3b22ff5f6d
BLAKE2b-256 60d8c8f8bb104fe14e41f97e793caadae75f11b3c66cd07591aa7cbaa831912a

See more details on using hashes here.

File details

Details for the file extended_selenium_page_factory-0.7b0-py3-none-any.whl.

File metadata

File hashes

Hashes for extended_selenium_page_factory-0.7b0-py3-none-any.whl
Algorithm Hash digest
SHA256 312b684ff84242f5408bd3d5ab4062cf9138cadd7252ad2cf5ccf70b72be9148
MD5 7ebd791e3d1c402f7f7c055bf7b72c72
BLAKE2b-256 76505a9a625a18f733cec3e87e3da72e0bed28cccbf654dbf42d6b598bf0939c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page