This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Wrapper around selenium drivers to ease testing of Aurelia based applications.

Inspired by the aurelia plugin for protractor.

API

The AureliaDriver class takes one positionnal parameter: a selenium webdriver. The full list of drivers is available here.

Options of AureliaDriver

The AureliaDriver class takes the following keyword arguments:

  • script_timeout (default:: 10): the timeout for execute_async_script. This is used internally to wait for the application to be loaded or to complete navigation.
  • default_wait_time (default: 2): the time to wait by default in seconds. This is used by AureliaDriver.wait if no time is supplied and to wait for the in AureliaDriver.load_url to wait for Aurelia to complete the initialization of the page.
  • started_condition (default: None): it is possible that your app will be loaded before the AureliaDriver has the time to register the proper callback in the browser. In this case, load_url will fail because of a time out. To prevent this, you can specify a custom condition you know is fulfilled when Aurelia is started on your application. For instance, if your application has a spinner with the splash class, you can use: document.querySelector("[aurelia-app]").children[0].getAttribute('class') === 'splash'.

load_url

Load the given url and wait for Aurelia to be full initiazed.

  • parameters:
    • url: the url to open.

wait

Sleep for the specified amount of time. If no argument is provided or if seconds is lower or equal than 0, AureliaDriver.default_wait_time will be used.

  • keyword arguments:
    • seconds (default: 0): number of seconds for which to sleep.

find_element_by_binding

Return the first element matching the specified binding.

  • parameters:
    • attr: the name of the attribute used in the binding. For instance, in src.bind="heroSrc" it is src.
    • value: the value for which to look for. For instance, in src.bind="heroSrc", it is heroSrc.
  • keyword arguments:
    • bind_type (default: ‘bind’): the type of binding to use. Possible values are: bind, one-way, two-way.

find_elements_by_binding

Return the list of all the elements matching the specified binding. See find_element_by_binding for details.

Full Example

You can have a look at the example script in selenium_aurelia/test/example.py.

Issues

You can report issues on the issues tracker.

Release History

Release History

0.1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
selenium_aurelia-0.1.0-py3-none-any.whl (8.6 kB) Copy SHA256 Checksum SHA256 py3 Wheel Oct 11, 2016
selenium-aurelia-0.1.0.tar.gz (6.2 kB) Copy SHA256 Checksum SHA256 Source Oct 11, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting