Appium-Double Click(双击)

Double-clicks at the current mouse coordinates (set by moveto). //在当前鼠标坐标处双击(由moveto设置)

Example Usage
JavaActions action = new Actions(driver);
action.moveTo(element);
action.doubleClick();
action.perform();
Pythonactions = ActionChains(driver)
actions.move_to_element(element)
actions.doubleClick()
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).doubleclick.perform

# ruby_lib_core example
@driver.action.move_to(element).double_click.perform
C#Actions action = new Actions(driver);
action.MoveToElement(element);
action.DoubleClick();
action.Perform();
PHP// TODO PHP sample
Support
Appium Server
PlatformDriverPlatform VersionsAppium VersionDriver Version
iOSXCUITestNoneNoneNone
UIAutomationNoneNoneNone
AndroidEspressoNoneNoneNone
UiAutomator2NoneNoneNone
UiAutomatorNoneNoneNone
MacMac?+1.6.4+All
WindowsWindows10+1.6.0+All
Appium Clients
LanguageSupportDocumentation
JavaAllseleniumhq.github.io
PythonAllselenium-python.readthedocs.io
Javascript (WebdriverIO)All
Javascript (WD)Allgithub.com
RubyAllwww.rubydoc.info
PHPAllgithub.com
C#Allgithub.com
HTTP API Specifications
Endpoint

POST /session/:session_id/doubleclick

URL Parameters
namedescription
session_idID of the session to route the command to
JSON Parameters

None

Response

null


版权声明:本文为weixin_45576146原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。