简介
官方解析
Desired Capabilities are keys and values encoded in a JSON object, sent by Appium clients to the server when a new automation session is requested. They tell the Appium drivers all kinds of important things about how you want your test to work. Each Appium client builds capabilities in a way specific to the client’s language, but at the end of the day, they are sent over to Appium as JSON objects.
说明
Desired Capabilities是一组设置的JSON对象键值对的集合,其中键对应设置的名称,而值对应设置的值。Desired Capabilities主要用于Appium服务器建立需要的Session,Appium的客户端和服务端之间进行通信都必须在一个Session的上下文中进行。客户端在发起通信的时候首先会发送一个叫作“Desired Capabilities”的JSON对象给服务器。服务器收到该数据后,会创建一个session并将session的ID返回到客户端。之后客户端可以用该session的ID发送后续的命令。
常用Capability
只列举一些常用的键值对
公共部分
Capab |
---|