Skip to main content

page object wrapper for selenium webdriver

Project description

Wrapper for selenium webdriver to make page objects easy:

class SomePageBlock(PageElement):
    filed = PageElement("#filed_id", timeout=10)
    button = PageElement("//path/to/element")

    def do_some_work(self, keys):
        self.field.send_keys(keys)
        self.button.click()
        ...

class SomePageObject(PageElementsContainer):
    element = SomePageBlock(".block_class")

    def __init__(self, driver):
        self.driver = driver

page = SomePageObject(get_driver('firefox'))
assert page.element.button.is_displayed()
page.element.do_some_work("bla-bla")
  • lazy element loading by request
  • automated handling of StaleElementReferenceException
  • flexible timeouts
  • automated detecting of locator type
  • smart lists of elements, automated logs and much more here.

Project details


Release history Release notifications

This version
History Node

0.0.2

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pypo4sel.core-0.0.2.tar.gz (9.5 kB) Copy SHA256 hash SHA256 Source None Dec 18, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page