violent webdriver based on selenium
Project description
violent_webdriver
post-packaging selenium webdriver, there are many violent and convinient functions which insure the browser operation
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==3.11.0
$ 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=[['tag', 'input'], ['name', 'word']], message='test')
dr.v_click(locate_rule=[['tag', '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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afbf082af642f3ba90c6d4fb059e806d3608c715fcb84f076759a786f55631a1 |
|
MD5 | 9c79ebac35f694dba769a64ed57554e6 |
|
BLAKE2b-256 | 4c53316b370343ace56daa6c7c2f004255e4ca72de7c713482a0717b6029c917 |