Skip to content

Commit 26ff6bd

Browse files
Capabilities Updates (#626)
* sync capabilities with latest server * style fixes
1 parent 63d7188 commit 26ff6bd

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed

src/main/java/io/appium/java_client/remote/AndroidMobileCapabilityType.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,18 @@ public interface AndroidMobileCapabilityType extends CapabilityType {
238238
*/
239239
String ANDROID_SCREENSHOT_PATH = "androidScreenshotPath";
240240

241+
/**
242+
* Have Appium automatically determine which permissions your app requires and
243+
* grant them to the app on install. Defaults to false.
244+
*/
245+
String AUTO_GRANT_PERMISSIONS = "autoGrantPermissions";
246+
247+
/**
248+
* Add androidNaturalOrientation capability to allow for correct handling of
249+
* orientation on landscape-oriented devices.
250+
*/
251+
String ANDROID_NATURAL_ORIENTATION = "androidNaturalOrientation";
252+
241253
String SELENDROID_PORT = "selendroidPort";
242254

243255
/**

src/main/java/io/appium/java_client/remote/IOSMobileCapabilityType.java

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,99 @@ public interface IOSMobileCapabilityType extends CapabilityType {
263263
*/
264264
String WDA_CONNECTION_TIMEOUT = "wdaConnectionTimeout";
265265

266+
/**
267+
* Apple developer team identifier string.
268+
* Must be used in conjunction with xcodeSigningId to take effect.
269+
* e.g., JWL241K123
270+
*/
271+
String XCODE_ORG_ID = "xcodeOrgId";
272+
273+
/**
274+
* String representing a signing certificate.
275+
* Must be used in conjunction with xcodeOrgId.
276+
* This is usually just iPhone Developer.
277+
*/
278+
String XCODE_SIGNING_ID = "xcodeSigningId";
279+
280+
/**
281+
* Bundle id to update WDA to before building and launching on real devices.
282+
* This bundle id must be associated with a valid provisioning profile.
283+
* e.g., io.appium.WebDriverAgentRunner.
284+
*/
285+
String UPDATE_WDA_BUNDLEID = "updatedWDABundleId";
286+
287+
/**
288+
* Whether to perform reset on test session finish (false) or not (true).
289+
* Keeping this variable set to true and Simulator running
290+
* (the default behaviour since version 1.6.4) may significantly shorten the
291+
* duratiuon of test session initialization.
292+
* Defaults to true.
293+
*/
294+
String RESET_ON_SESSION_START_ONLY = "resetOnSessionStartOnly";
295+
296+
/**
297+
* Custom timeout(s) in milliseconds for WDA backend commands execution.
298+
*/
299+
String COMMAND_TIMEOUTS = "commandTimeouts";
300+
301+
/**
302+
* Number of times to try to build and launch WebDriverAgent onto the device.
303+
* Defaults to 2.
304+
*/
305+
String WDA_STARTUP_RETRIES = "wdaStartupRetries";
306+
307+
/**
308+
* Time, in ms, to wait between tries to build and launch WebDriverAgent.
309+
* Defaults to 10000ms.
310+
*/
311+
String WDA_STARTUP_RETRY_INTERVAL = "wdaStartupRetryInterval";
312+
313+
/**
314+
* Set this option to true in order to enable hardware keyboard in Simulator.
315+
* It is set to false by default, because this helps to workaround some XCTest bugs.
316+
*/
317+
String CONNECT_HARDWARE_KEYBOARD = "connectHardwareKeyboard";
318+
319+
/**
320+
* Maximum frequency of keystrokes for typing and clear.
321+
* If your tests are failing because of typing errors, you may want to adjust this.
322+
* Defaults to 60 keystrokes per minute.
323+
*/
324+
String MAX_TYPING_FREQUENCY = "maxTypingFrequency";
325+
326+
/**
327+
* Use native methods for determining visibility of elements.
328+
* In some cases this takes a long time.
329+
* Setting this capability to false will cause the system to use the position
330+
* and size of elements to make sure they are visible on the screen.
331+
* This can, however, lead to false results in some situations.
332+
* Defaults to false, except iOS 9.3, where it defaults to true.
333+
*/
334+
String SIMPLE_ISVISIBLE_CHECK = "simpleIsVisibleCheck";
335+
336+
/**
337+
* Use SSL to download dependencies for WebDriverAgent. Defaults to false.
338+
*/
339+
String USE_CARTHAGE_SSL = "useCarthageSsl";
340+
341+
/**
342+
* Use default proxy for test management within WebDriverAgent.
343+
* Setting this to false sometimes helps with socket hangup problems.
344+
* Defaults to true.
345+
*/
346+
String SHOULD_USE_SINGLETON_TESTMANAGER = "shouldUseSingletonTestManager";
347+
348+
/**
349+
* Set this to true if you want to start ios_webkit_debug proxy server
350+
* automatically for accessing webviews on iOS.
351+
* The capatibility only works for real device automation.
352+
* Defaults to false.
353+
*/
354+
String START_IWDP = "startIWDP";
355+
356+
/**
357+
* Enrolls simulator for touch id. Defaults to false.
358+
*/
359+
String ALLOW_TOUCHID_ENROLL = "allowTouchIdEnroll";
360+
266361
}

src/main/java/io/appium/java_client/remote/MobileCapabilityType.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,10 @@ public interface MobileCapabilityType extends CapabilityType {
114114
* the end of a session (see iOS and Android entries for particulars).
115115
*/
116116
String CLEAR_SYSTEM_FILES = "clearSystemFiles";
117+
118+
/**
119+
* Enable or disable the reporting of the timings for various Appium-internal events
120+
* (e.g., the start and end of each command, etc.). Defaults to false.
121+
*/
122+
String EVENT_TIMINGS = "eventTimings";
117123
}

0 commit comments

Comments
 (0)