From 1ec9a8eaa4a59fa7217e7dcf79350982f2493e27 Mon Sep 17 00:00:00 2001 From: Manoj Kumar Date: Fri, 3 Sep 2021 17:01:47 +0530 Subject: [PATCH 1/2] Add new flags to support Appium 2.0 --- .../local/flags/GeneralServerFlag.java | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java b/src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java index d59ff750d..c13e312ea 100644 --- a/src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java +++ b/src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java @@ -133,7 +133,40 @@ public enum GeneralServerFlag implements ServerArgument { * Default: [] * Sample: --deny-insecure=foo,bar */ - DENY_INSECURE("--deny-insecure"); + DENY_INSECURE("--deny-insecure"), + /** + * Plugins are little programs which can be added to an Appium installation and activated, for the purpose of + * extending or modifying the behavior of pretty much any aspect of Appium. + * Plugins are available with Appium as of Appium 2.0. + * To activate all plugins, you can use the single string "all" as the value (e.g --plugins=all) + * Default: [] + * Sample: --plugins=device-farm,images + */ + PLUGINS("--plugins"), + /** + * A comma-separated list of installed driver names that should be active for this server. + * All drivers will be active by default. + * Default: [] + * Sample: --drivers=uiautomator2,xcuitest + */ + DRIVERS("--drivers"), + /** + * Base path to use as the prefix for all webdriver routes running on this server + * Sample: --base-path=/wd/hub + */ + BASEPATH("--base-path"), + /** + * Set the default desired client arguments for a plugin. + * Default: [] + * Sample: [ '{"images":{"foo1": "bar1", "foo2": "bar2"}}' | /path/to/pluginArgs.json ] + */ + PLUGINARGS("--plugin-args"), + /** + * Set the default desired client arguments for a driver. + * Default: [] + * Sample: [ '{"xcuitest": {"foo1": "bar1", "foo2": "bar2"}}' | /path/to/driverArgs.json ] + */ + DRIVERARGS("--driver-args"); private final String arg; From 43b9ce69d8eb277e8ff7d28d345bb81bb4d7b22e Mon Sep 17 00:00:00 2001 From: Manoj Kumar Date: Fri, 3 Sep 2021 17:11:54 +0530 Subject: [PATCH 2/2] refactored to make javadoc happy --- .../java_client/service/local/flags/GeneralServerFlag.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java b/src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java index c13e312ea..817deae05 100644 --- a/src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java +++ b/src/main/java/io/appium/java_client/service/local/flags/GeneralServerFlag.java @@ -151,7 +151,7 @@ public enum GeneralServerFlag implements ServerArgument { */ DRIVERS("--drivers"), /** - * Base path to use as the prefix for all webdriver routes running on this server + * Base path to use as the prefix for all webdriver routes running on this server. * Sample: --base-path=/wd/hub */ BASEPATH("--base-path"),