测试人社区

Appium-example

Template

Brief description
//: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/example.yml)

Example Usage

// Java
MobileElement el = driver.findElementByAccessibilityId("SomeId");
el.click();

# Python
el = self.driver.find_element_by_accessibility_id('SomeId')
el.click();

// Javascript
// webdriver.io example
await driver.status();

// wd example
await driver.status();

# Ruby
# ruby_lib example
# Ruby Code in ruby_lib here

# ruby_lib_core example
# Ruby Code in ruby_lib_core here

# PHP
// PHP Code here

// C#
driver.FindElementById("elementId").Click();

Description

An indepth description of what this command does

Support

Appium Server

Platform Driver Platform Versions Appium Version Driver Version
iOS XCUITest 1.2 to 9.3 1.7 to 1.9 1.1 to 9.9
UIAutomation 1.0 to 9.3 All All
Android UiAutomator2 8.0+ 1.6.0+ All
UiAutomator 4.3+ All All
Mac Mac ?+ 1.6.4+ All

Appium Clients

HTTP API Specifications

Endpoint

POST /session/:session_id/element/:element_id/click

URL Parameters

name description
session_id ID of the session
element_id ID of the element to blah blah blah

JSON Parameters

name type description
item Object Description of Item
item.1 String Item One description

Response

A generic release label (i.e. “2.0rc3”) (string)

See Also

官方链接为:http://appium.io/docs/en/commands/example