Capability is a collection of key-value pairs (for example: "platformName": "Android"). Capability is mainly used to notify the Appium server of the information needed to establish a Session. The client uses a specific language to generate Capabilities, which will eventually be sent to the Appium server in the form of a JSON object.
Appium underlying architecture
For example, the following example shows several important capabilities:
- Python version
{
"platformName": "Android",
"platformVersion": "6.0",
"deviceName": "hogwarts",
}
- java version
desiredCapabilities.setCapability("platformName", "Android");
desiredCapabilities.setCapability("platformVersion", "6.0");
desiredCapabilities.setCapability("deviceName", "hogwarts");
Common Capability parameters
The Capabilities parameter supports multiple platforms.
Android Only
iOS Only
The following Capabilities only support Android drivers, such as UiAutomator2.
The following Capabilities only support iOS drivers, such as XCUITest Driver and deprecated UIAutomation Driver.
[A full 200 episodes] A collection of super-detailed advanced tutorials for automated testing of Python interfaces, a real simulation of actual enterprise project combat