---
name: Click
short_description: Double-clicks at the current mouse coordinates (set by moveto).
   
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_wd:
    |
      await driver.moveTo(element);
      await driver.doubleclick();

  javascript_wdio:
    |
      driver.moveTo(element)
        .doubleClick();
  ruby:
    |
      @driver.action.move_to(element).double_click.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#doubleClick--"
  python: "http://selenium-python.readthedocs.io/api.html#selenium.webdriver.common.action_chains.ActionChains.double_click"
  javascript_wdio: "http://webdriver.io/api/action/doubleClick.html"
  javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L1686"
  ruby: "http://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/ActionBuilder:double_click"
  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/doubledoubleClick
  method: POST
  url_parameters:
    - name: session_id
      description: ID of the session to route the command to

# Links to specifications. Should link to at least one specification
specifications:
  jsonwp: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessioniddoubledoubleClick
