forked from appium/java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetting.java
More file actions
70 lines (64 loc) · 2.78 KB
/
Setting.java
File metadata and controls
70 lines (64 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.appium.java_client;
/**
* Enums defining constants for Appium Settings which can be set and toggled during a test session.
* <br>
* <a href="https://appium.io/docs/en/advanced-concepts/settings/">
* https://appium.io/docs/en/advanced-concepts/settings/</a>
*/
public enum Setting {
// Android
IGNORE_UNIMPORTANT_VIEWS("ignoreUnimportantViews"),
WAIT_FOR_IDLE_TIMEOUT("waitForIdleTimeout"),
WAIT_FOR_SELECTOR_TIMEOUT("waitForSelectorTimeout"),
WAIT_SCROLL_ACKNOWLEDGMENT_TIMEOUT("scrollAcknowledgmentTimeout"),
WAIT_ACTION_ACKNOWLEDGMENT_TIMEOUT("actionAcknowledgmentTimeout"),
ALLOW_INVISIBLE_ELEMENTS("allowInvisibleElements"),
ENABLE_NOTIFICATION_LISTENER("enableNotificationListener"),
NORMALIZE_TAG_NAMES("normalizeTagNames"),
KEY_INJECTION_DELAY("keyInjectionDelay"),
SHUTDOWN_ON_POWER_DISCONNECT("shutdownOnPowerDisconnect"),
TRACK_SCROLL_EVENTS("trackScrollEvents"),
// iOS
MJPEG_SERVER_SCREENSHOT_QUALITY("mjpegServerScreenshotQuality"),
MJPEG_SERVER_FRAMERATE("mjpegServerFramerate"),
SCREENSHOT_QUALITY("screenshotQuality"),
NATIVE_WEB_TAP("nativeWebTap"),
MJPEG_SCALING_FACTOR("mjpegScalingFactor"),
KEYBOARD_AUTOCORRECTION("keyboardAutocorrection"),
KEYBOARD_PREDICTION("keyboardPrediction"),
// Android and iOS
SHOULD_USE_COMPACT_RESPONSES("shouldUseCompactResponses"),
ELEMENT_RESPONSE_ATTRIBUTES("elementResponseAttributes"),
// All platforms
IMAGE_ELEMENT_TAP_STRATEGY("imageElementTapStrategy"),
IMAGE_MATCH_THRESHOLD("imageMatchThreshold"),
FIX_IMAGE_FIND_SCREENSHOT_DIMENSIONS("fixImageFindScreenshotDims"),
FIX_IMAGE_TEMPLATE_SIZE("fixImageTemplateSize"),
CHECK_IMAGE_ELEMENT_STALENESS("checkForImageElementStaleness"),
UPDATE_IMAGE_ELEMENT_POSITION("autoUpdateImageElementPosition"),
FIX_IMAGE_TEMPLATE_SCALE("fixImageTemplateScale"),
DEFAULT_IMAGE_TEMPLATE_SCALE("defaultImageTemplateScale"),
GET_MATCHED_IMAGE_RESULT("getMatchedImageResult");
private final String name;
Setting(String name) {
this.name = name;
}
public String toString() {
return this.name;
}
}