Control the browser behavior automaticly.
Project description
browserctrl
Control the browser behavior automaticly.
Install
pip install browserctrl
Installed Commands
- browserctrl
Usage
C:\Workspace\browserctrl>browserctrl --help
Usage: browserctrl [OPTIONS] COMMAND [ARGS]...
Browser automation toolset.
Options:
--help Show this message and exit.
Commands:
create-xlsx-template Create a new xlsx file with command define...
run-xlsx-config Run browser automation commands defined in...
C:\Workspace\browserctrl>browserctrl run-xlsx-config --help
Usage: browserctrl run-xlsx-config [OPTIONS] CONFIG_XLSX_PATH
[VARIABLES_YML_PATH]
Run browser automation commands defined in xlsx file.
Options:
-s, --sheet TEXT
--help Show this message and exit.
C:\Workspace\browserctrl>browserctrl create-xlsx-template --help
Usage: browserctrl create-xlsx-template [OPTIONS] [OUTPUT]
Create a new xlsx file with command define template.
Options:
--help Show this message and exit.
Examples
- Create a new xlsx template.
browserctrl create-xlsx-template my-task.xlsx
- Edit my-task.xlsx, add commands.
- Run commands in my-task.xlsx.
browserctrl run-xlsx-config my-task.xlsx
- If there are variables used in my-task.xlsx, write variables in variables.yml, and pass the filename to run command.
browserctrl run-xlsx-config my-task.xlsx variables.yml
Note:
- See more help information in xlsx template which can be created by the sub-command create-xlsx-template.
- You have to install phantomjs, webdriver for chrome, firefox and ie by yourself.
- Chrome webdriver can be downloaded at https://sites.google.com/a/chromium.org/chromedriver/downloads.
- IE webdriver can be downloaded at https://www.selenium.dev/downloads/.
Releases
v0.1.2 2020/05/29
- Add headless chrome browser support.
- Fix another counter screenshot filename problem in wait_and_monitoring.
- Fix screenshot problem creating empty folder.
- Fix Ie Browser zoom level not 100% problem.
- Ignore lines without operation.
v0.1.1 2020/05/29
- Add instance_start_delay parameter for run_xlsx_config.
- Add StreamHandler() for logging.
- Update interval status before sleep in wait_and_monitoring.
- Fix counter screenshot filename problem in wait_and_monitoring.
v0.1.0 2020/05/29
- First release.
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
browserctrl-0.1.2.tar.gz
(17.8 kB
view details)
File details
Details for the file browserctrl-0.1.2.tar.gz
.
File metadata
- Download URL: browserctrl-0.1.2.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dfae048900347a06462cd21f3dd86f3484a437f05edac06f18b2e4ec02b25ab |
|
MD5 | 9f9b203d8166a350f8b381c8e1fdec17 |
|
BLAKE2b-256 | 9f7ffac949c95a4c143244540b29b8c5c84fa0281c6dc764ca0d01b65792d11e |