This documentation is deprecated. Please refer to the README in the Appium repository or Appium 2.0 documentation.
Edit this Doc Submit Form
Submit a FORM element
Example Usage
MobileElement element = (MobileElement) driver.findElementByClassName("SomeClassName");
element.submit();
el = self.driver.find_element_by_accessibility_id('SomeAccessibilityID')
el.submit();
// webdriver.io example
let formElement = $("~SomeAccessibilityId");
driver.elementSubmit(formElement.elementId);
// wd example
let element = await driver.elementByAccessibilityId("SomeAccessibilityID");
await element.submit();
# ruby_lib example
element = find_element :class_name, "someClass"
element.submit element
# ruby_lib_core example
element = @driver.find_element :class_name, "someClass"
element.submit element
var element = driver.FindElementByClassName("SomeClassName");
element.Submit();
Description
The submit command may also be applied to any element that is a descendant of a FORM element (Web only)
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 |
C# | All | github.com |
HTTP API Specifications
Endpoint
POST /session/:session_id/element/:element_id/submit
URL Parameters
name | description |
---|---|
session_id | ID of the session to route the command to |
element_id | ID of the element to submit |
JSON Parameters
None
Response
null