appium
Version:
Automation for Apps.
95 lines (86 loc) • 2.78 kB
YAML
name: Button Up
short_description: Releases the mouse button previously held
description:
|
Must be called once for every buttondown command issued. See the note in click and buttondown about implications of out-of-order commands.
example_usage:
java:
|
Actions action = new Actions(driver);
action.moveTo(element);
action.clickAndHold();
action.moveTo(element, 10, 10);
action.release();
action.perform();
python:
|
actions = ActionChains(driver)
actions.move_to_element(element)
actions.click_and_hold()
actions.move_to_element(element, 10, 10)
action.release();
actions.perform()
javascript_wd:
|
await driver.moveTo(element);
await driver.buttonDown();
await driver.moveTo(element, 10, 10);
await driver.buttonUp();
javascript_wdio:
|
driver.moveTo(element)
.buttonDown()
.moveTo(element, 10, 10)
.buttonUp();
ruby:
|
@driver.action.click_and_hold(el).move_to(el, 10, 10).release.perform
php:
|
// TODO PHP sample
csharp:
|
// TODO C# sample
client_docs:
java: "https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/interactions/Actions.html#clickAndHold--"
python: "http://selenium-python.readthedocs.io/api.html#selenium.webdriver.common.action_chains.ActionChains.release"
javascript_wdio: "http://webdriver.io/api/protocol/buttonUp.html"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L1645"
ruby: "http://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/ActionBuilder:release"
php: "https://github.com/appium/php-client/" # TODO PHP documentation link
csharp: "https://github.com/appium/appium-dotnet-driver/" # TODO Dotnet documentation link
# Driver support by platform
driver_support:
ios:
xcuitest: false
uiautomation: false
android:
uiautomator2: false
uiautomator: false
mac:
mac: true # TODO Confirm this that mouse movements
windows:
windows: true # TODO Confirm this
client_support:
java: true
python: true
ruby: true
php: true
csharp: true
javascript_wd: true
javascript_wdio: true
# Information about the HTTP endpoints
endpoint:
url: /session/:session_id/buttonup
method: POST
url_parameters:
- name: session_id
description: ID of the session to route the command to
json_parameters:
- name: button
type: number
description: Which button, {LEFT = 0, MIDDLE = 1 , RIGHT = 2}. Defaults to the left mouse button if not specified
# Links to specifications. Should link to at least one specification
specifications:
jsonwp: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttonup