Double Click
Double-clicks at the current mouse coordinates (set by moveto).
//: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/interactions/mouse/doubleclick.yml)
Example Usage
// Java
Actions action = new Actions(driver);
action.moveTo(element);
action.doubleClick();
action.perform();
# Python
actions = ActionChains(driver)
actions.move_to_element(element)
actions.double_click()
actions.perform()
// Javascript
// webdriver.io example
$("~SomeId").doubleClick();
// wd example
await driver.moveTo(element);
await driver.doubleclick();
# Ruby
# ruby_lib example
action.move_to(element).double_click.perform
# ruby_lib_core example
@driver.action.move_to(element).double_click.perform
# PHP
// TODO PHP sample
// C#
Actions action = new Actions(driver);
action.MoveToElement(element);
action.DoubleClick();
action.Perform();
Support
Appium Server
Platform | Driver | Platform Versions | Appium Version | Driver Version |
---|---|---|---|---|
iOS | XCUITest | None | None | None |
UIAutomation | None | None | None | |
Android | UiAutomator2 | None | None | None |
Espresso | None | None | None | |
UiAutomator | None | None | None | |
Mac | Mac | ?+ | 1.6.4+ | All |
Windows | Windows | 10+ | 1.6.0+ | All |
Appium Clients
Language | Support | Documentation |
---|---|---|
Java | All | seleniumhq.github.io |
Python | All | selenium-python.readthedocs.io |
Javascript (WebdriverIO) | All | |
Javascript (WD) | All | github.com |
Ruby | All | www.rubydoc.info |
PHP | All | github.com |
C# | All | github.com |
HTTP API Specifications
Endpoint
POST /session/:session_id/doubleClick
URL Parameters
name | description |
---|---|
session_id | ID of the session to route the command to |
JSON Parameters
None
Response
null
See Also
官方链接为:http://appium.io/docs/en/commands/interactions/mouse/doubleclick