selenium like ansible
Project description
selenible
do selenium like ansible
requirements
- python3
- selenium webdriver
- phantomjs
- chrome
- firefox
- etc...
try
- git clone https://github.com/wtnb75/selenible.git
- cd selenible
- pip install -r requirements.txt
# 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
- pip install -e 'git+https://github.com/wtnb75/selenible.git#egg=selenible'
- selenible --help
- ...
(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)
Built Distributions
selenible-0.0.1-py3.5.egg
(28.6 kB
view hashes)
selenible-0.0.1-py3-none-any.whl
(29.7 kB
view hashes)
Close
Hashes for selenible-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf19500e887da59deeaabe65879d0078517ef704db9e399766e83996b8e818a8 |
|
MD5 | 1d6afa78fd04bb269ed50065a27c1e50 |
|
BLAKE2b-256 | 999c69285d4456c45a47233977927531c413250adb4f7e5c4501b9823ed6372b |