🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) # 表单提交 提交一个表单元素 [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ## 用法示例 ```java // Java MobileElement element = (MobileElement) driver.findElementByClassName("SomeClassName"); element.submit(); ``` ```python # Python el = self.driver.find_element_by_accessibility_id('SomeAccessibilityID') el.submit(); ``` ```javascript // Javascript // webdriver.io example let formElement = $("~SomeAccessibilityId"); driver.elementSubmit(formElement.elementId); // wd example let element = await driver.elementByAccessibilityId("SomeAccessibilityID"); await element.submit(); ``` ```ruby # Ruby # 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 ``` ```php # PHP // TODO PHP sample ``` ```csharp // C# var element = driver.FindElementByClassName("SomeClassName"); element.Submit(); ``` [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ## 描述 该提交命令也适用于表单元素的子类(Web网页适用) [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ## 版本支持 [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ### Appium服务端 |平台|Driver|平台版本|Appium版本|Driver版本| |--------|----------------|------|--------------|--------------| | iOS | [XCUITest](../drivers/ios-xcuitest.md) | 无 | 无 | 无 | | | [UIAutomation](../drivers/ios-uiautomation.md) | 无 | 无 | 无 | | Android | [UiAutomator2](../drivers/android-uiautomator2.md) | 无 | 无 | 无 | | | [Espresso](../drivers/android-espresso.md) | 无 | 无 | 无 | | | [UiAutomator](../drivers/android-uiautomator.md) | 无 | 无 | 无 | | Mac | [Mac](../drivers/mac.md) | ?+ | 1.6.4+ | 全部 | | Windows | [Windows](../drivers/windows.md) | 10+ | 1.6.0+ | 全部 | [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ### Appium客户端 |编程语言|支持的版本|对应的文档| |--------|-------|-------------| |[Java](https://github.com/appium/java-client/releases/latest)| 全部 | [seleniumhq.github.io](https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebElement.html#submit--) | |[Python](https://github.com/appium/python-client/releases/latest)| 全部 | [selenium-python.readthedocs.io](http://selenium-python.readthedocs.io/api.html#selenium.webdriver.remote.webelement.WebElement.submit) | |[Javascript (WebdriverIO)](http://webdriver.io/index.html)| 全部 | | |[Javascript (WD)](https://github.com/admc/wd/releases/latest)| 全部 | [github.com](https://github.com/admc/wd/blob/master/lib/commands.js#L1741) | |[Ruby](https://github.com/appium/ruby_lib/releases/latest)| 全部 | [www.rubydoc.info](https://www.rubydoc.info/gems/selenium-webdriver/0.0.28/Selenium/WebDriver/Element#submit-instance_method) | |[PHP](https://github.com/appium/php-client/releases/latest)| 全部 | [github.com](https://github.com/appium/php-client/) | |[C#](https://github.com/appium/appium-dotnet-driver/releases/latest)| 全部 | [github.com](https://github.com/SeleniumHQ/selenium/blob/master/dotnet/src/webdriver/Remote/RemoteWebElement.cs) | [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ## HTTP应用程序接口文档 [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ### 接口 `POST /session/:session_id/element/:element_id/submit` [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ### URL参数 |参数名|参数描述| |----|-----------| |session_id|执行命令所使用到的session ID| |element_id|需要进行提交操作的元素ID| [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ### JSON参数 无 [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ### 返回结果 null [//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/element/other/submit.yml) ## 其他链接 * [JSONWP 文档](https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsubmit)