Skip to content

Commit 94b3022

Browse files
authored
feat: Add new flags to support Appium 2.0 (#1511)
1 parent bcd6881 commit 94b3022

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,40 @@ public enum GeneralServerFlag implements ServerArgument {
133133
* Default: []
134134
* Sample: --deny-insecure=foo,bar
135135
*/
136-
DENY_INSECURE("--deny-insecure");
136+
DENY_INSECURE("--deny-insecure"),
137+
/**
138+
* Plugins are little programs which can be added to an Appium installation and activated, for the purpose of
139+
* extending or modifying the behavior of pretty much any aspect of Appium.
140+
* Plugins are available with Appium as of Appium 2.0.
141+
* To activate all plugins, you can use the single string "all" as the value (e.g --plugins=all)
142+
* Default: []
143+
* Sample: --plugins=device-farm,images
144+
*/
145+
PLUGINS("--plugins"),
146+
/**
147+
* A comma-separated list of installed driver names that should be active for this server.
148+
* All drivers will be active by default.
149+
* Default: []
150+
* Sample: --drivers=uiautomator2,xcuitest
151+
*/
152+
DRIVERS("--drivers"),
153+
/**
154+
* Base path to use as the prefix for all webdriver routes running on this server.
155+
* Sample: --base-path=/wd/hub
156+
*/
157+
BASEPATH("--base-path"),
158+
/**
159+
* Set the default desired client arguments for a plugin.
160+
* Default: []
161+
* Sample: [ '{"images":{"foo1": "bar1", "foo2": "bar2"}}' | /path/to/pluginArgs.json ]
162+
*/
163+
PLUGINARGS("--plugin-args"),
164+
/**
165+
* Set the default desired client arguments for a driver.
166+
* Default: []
167+
* Sample: [ '{"xcuitest": {"foo1": "bar1", "foo2": "bar2"}}' | /path/to/driverArgs.json ]
168+
*/
169+
DRIVERARGS("--driver-args");
137170

138171
private final String arg;
139172

0 commit comments

Comments
 (0)