Skip to main content

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

violent-webdriver 诞生于二次封装 selenium webdriver,内部封装了许多方法来确保浏览器操作的执行性,你不需要去担心定位到的元素是否存在于当前页面或者元素是否在当前时刻处于可点击状态,报错重试机制可以帮你自动解决这些不必要的麻烦。

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

Welcome to follow my public account 「智能测试开发」by WeChat and contact me

欢迎大家来关注我的个人公众号 「智能测试开发」并进行深度交流

image

Finally, if you really find this lib useful,donation is welcome by using your phone to scann the two-dimensional code below

最后,如果你觉得这个库真的好用的话可以扫码给作者一些鼓励哦~

image

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

violent-webdriver-1.0.30.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file violent-webdriver-1.0.30.tar.gz.

File metadata

  • Download URL: violent-webdriver-1.0.30.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

File hashes

Hashes for violent-webdriver-1.0.30.tar.gz
Algorithm Hash digest
SHA256 9b6bbcd032613753bf632ae79da5d20d733106c0296ea95f9bc537fc3ac31f22
MD5 aa18b22b95c451d17d483f3a8218a4ea
BLAKE2b-256 bc2a0623b2a44f32bb8b3a9d1af0e8a044e52df3c8ec388cf03c7276e1768ec1

See more details on using hashes here.

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