violent webdriver based on selenium
Project description
violent-webdriver
violent-webdriver is created by post-packaging selenium webdriver, violent-webdriver has many convinient functions which can highly insure the browser operation, you don't need to worry about whether the element is really present on current page or clickable at specific time while using violent-webdriver. it will handle this sort of annoying problems
Find the latest version on github : https://github.com/amazingTest/violent-webdriver
Installation
The last stable release is available on PyPI and can be installed with pip. make sure that Chrome has been installed and match the selenium version
$ pip install selenium
$ pip install violent-webdriver
Best Practice
Firstly, create a python file: c:\folder\mytest.py
# c:\folder\mytest.py
from violent_webdriver import Chrome
dr = Chrome.violent_chromedriver(executable_path=[CHROMEDRIVER_PATH], use_mobile_emulation=True)
dr.get('http://www.baidu.com')
dr.v_send_keys(locate_rule={'css selector': 'input[name=\'word\']'}, message='test')
dr.v_click(locate_rule={'css selector': 'button[class=\'se-bn\']'})
then use your IDE to run this script or
$ python c:\folder\mytest.py
if successful, you will see the search result of 'test' by a mobile emulated browser
For more code examples, please refer to the examples folder in source distribution or visit https://github.com/amazingTest/violent-webdriver/tree/master/examples
Contact me
For information and suggestions you can contact me at 523314409@qq.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for violent_webdriver-1.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef234ea7963d5b5ee2ab32fd2a2ccb5b1e6dac783a7589fe7dbd420b323aeb8 |
|
MD5 | 1b0dba35f8baedf9b1626643e1dfd8ec |
|
BLAKE2b-256 | ea1fe86b75cf897b161dd398a153c4b2ea2d24da0c153e6c7ceefb2cf865ac64 |