Skip to main content

selenium like ansible

Project description

selenible

do selenium like ansible

requirements

  • python3
  • selenium webdriver
    • phantomjs
    • chrome
    • firefox
    • etc...

try

# python -m selenible.cli
Usage: cli.py [OPTIONS] COMMAND [ARGS]...

Options:
  --version       Show the version and exit.
  --verbose
  --quiet
  --logfile PATH
  --help          Show this message and exit.

Commands:
  browser-options  show browser options
  dump-schema      dump json schema
  list-modules     list modules
  run              run playbook
  validate         validate by json schema
# python -m selenible.cli list-modules
+--------------+---------------------------------------------------------------+
|    Module    |                          Description                          |
+==============+===============================================================+
| alertOK      | - name: accept alert                                          |
|              |   alertOK: true                                               |
|              | - name: cancel alert                                          |
|              |   alertOK: false                                              |
+--------------+---------------------------------------------------------------+
| auth         | - name: basic/digest auth                                     |
|              |   auth:                                                       |
|              |     username: user1                                           |
|              |     password: password1                                       |
+--------------+---------------------------------------------------------------+
| click        | - name: click1                                                |
|              |   click:                                                      |
|              |     id: elementid1                                            |
|              | - name: click2                                                |
|              |   click:                                                      |
|              |     xpath: //div[1]                                           |
+--------------+---------------------------------------------------------------+
| config       | - name: config phantomjs                                      |
   :

install

(uninstall)

  • pip uninstall selenible -y

examples

- name: open url
  open: https://www.google.com
- name: screenshot
  screenshot: output.png

and more examples...

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

selenible-0.0.1.tar.gz (22.5 kB view hashes)

Uploaded Source

Built Distributions

selenible-0.0.1-py3.5.egg (28.6 kB view hashes)

Uploaded Source

selenible-0.0.1-py3-none-any.whl (29.7 kB view hashes)

Uploaded Python 3

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