All Projects → macacajs → wd.py

macacajs / wd.py

Licence: MIT license
Python Client binding for Macaca

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to wd.py

wd.java
Java Client binding for Macaca
Stars: ✭ 30 (-9.09%)
Mutual labels:  webdriver, macaca
basic-selenium-project
an example selenium test project
Stars: ✭ 55 (+66.67%)
Mutual labels:  webdriver
sample-nodejs
Macaca test sample for Node.js
Stars: ✭ 44 (+33.33%)
Mutual labels:  macaca
phoenix.webui.framework
基于WebDriver的WebUI自动化测试框架
Stars: ✭ 118 (+257.58%)
Mutual labels:  webdriver
watir-get-image-content
Get Watir::Image's content copy without external download
Stars: ✭ 14 (-57.58%)
Mutual labels:  webdriver
seletest
Seletest is a web and mobile automation testing framework
Stars: ✭ 19 (-42.42%)
Mutual labels:  webdriver
jest-environment-selenium
Jest environment for running Selenium WebDriver tests
Stars: ✭ 28 (-15.15%)
Mutual labels:  webdriver
spydriver
🕵️ Lightweight utility to intercept WebDriver and WebElement method calls.
Stars: ✭ 24 (-27.27%)
Mutual labels:  webdriver
android-unicode
Android unicode UTF-7 input apk
Stars: ✭ 23 (-30.3%)
Mutual labels:  macaca
Assistive-Webdriver
Assistive-Webdriver is a tool to automate end-to-end web application tests with a screen reader.
Stars: ✭ 19 (-42.42%)
Mutual labels:  webdriver
google-meet-bot
Bot for scheduling and entering google meet sessions automatically
Stars: ✭ 33 (+0%)
Mutual labels:  webdriver
PyScholar
A 'supervised' parser for Google Scholar
Stars: ✭ 74 (+124.24%)
Mutual labels:  webdriver
appium-mac2-driver
Next-gen Appium macOS driver, backed by Apple XCTest
Stars: ✭ 55 (+66.67%)
Mutual labels:  webdriver
ScribeBot
A highly scriptable automation system full of cool features. Automate everything with a little bit of Lua.
Stars: ✭ 72 (+118.18%)
Mutual labels:  webdriver
webdriver-binaries-gradle-plugin
A Gradle plugin that downloads and caches WebDriver binaries specific to the OS the build runs on
Stars: ✭ 31 (-6.06%)
Mutual labels:  webdriver
iosHookViewId
A solution for ios hook view id(给iOS应用自动生成控件id)
Stars: ✭ 44 (+33.33%)
Mutual labels:  macaca
mugshot
Framework independent visual testing library
Stars: ✭ 126 (+281.82%)
Mutual labels:  webdriver
nodecv-server
nodecv server side
Stars: ✭ 16 (-51.52%)
Mutual labels:  macaca
SeleniumTDD
A Selenium TDD framework that incorporates key features of Selenium and TestNG which can be used to create web-based automation scripts.
Stars: ✭ 23 (-30.3%)
Mutual labels:  webdriver
karate
Test Automation Made Simple
Stars: ✭ 6,384 (+19245.45%)
Mutual labels:  webdriver

Macaca Python Client

https://img.shields.io/coveralls/macacajs/wd.py/master.svg?style=flat-square https://img.shields.io/travis/macacajs/wd.py/master.svg?style=flat-square https://img.shields.io/pypi/v/wd.svg?style=flat-square https://img.shields.io/pypi/pyversions/wd.svg?style=flat-square https://img.shields.io/pypi/dd/wd.svg?style=flat-square

Intro

WD.py is a Python WebDriver client implemented most of the APIs in the WebDriver Protocol. It was originally designed for Macaca (A Node.js powered WebDriver server), but also available for any other implementation of WebDriver server such as Selenium, Appium and etc.

Homepage

WD.py’s documentation.

Sample

WD.py’s sample.

Examples

>>> from macaca import WebDriver, WebElement

# Configure the desired capabilities.
>>> desired_caps = {
    'autoAcceptAlerts': True,
    'browserName': 'electron',
    'platformName': 'desktop'
}

>>> driver = WebDriver(desired_caps)

# Start the WebDriver session
>>> driver.init()

# Support fluent API
>>> driver.set_window_size(1280, 800).get("https://www.google.com")

# Get WebElement instance through element_by_* APIs.
>>> web_element = driver.element_by_id("lst-ib")
>>> print(type(web_element))
macaca.webelement.WebElement

# WebElement include methods such as send_keys, click, get_attribute and etc.
>>> web_element.send_keys("macaca")
>>> web_element = driver.element_by_name("btnK")
>>> web_element.click()

# WebDriver also has some properties like source, title and current_url.
>>> html = driver.source
>>> print('Does Macaca exist: ', 'macaca' in html)
Does Macaca exist: True
>>> title = driver.title
>>> print(title)
macaca - Google Search

Changelog

Details changes for each release are documented in the HISTORY.rst.

Contributing

See CONTRIBUTING.rst

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].