Appium-Python-Client 5.2.7__py3-none-any.whl → 5.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- appium/webdriver/extensions/android/nativekey.py +44 -0
- appium/webdriver/webdriver.py +2 -1
- {appium_python_client-5.2.7.dist-info → appium_python_client-5.3.1.dist-info}/METADATA +1 -1
- {appium_python_client-5.2.7.dist-info → appium_python_client-5.3.1.dist-info}/RECORD +6 -6
- {appium_python_client-5.2.7.dist-info → appium_python_client-5.3.1.dist-info}/WHEEL +0 -0
- {appium_python_client-5.2.7.dist-info → appium_python_client-5.3.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -13,6 +13,50 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
class AndroidKeyMetastate:
|
|
17
|
+
"""Keyboard metastate constants for Android key events.
|
|
18
|
+
|
|
19
|
+
These constants can be combined with bitwise OR and passed to
|
|
20
|
+
Keyboard.press_keycode or Keyboard.long_press_keycode as metastate.
|
|
21
|
+
Values are based on android.view.KeyEvent.
|
|
22
|
+
https://developer.android.com/reference/android/view/KeyEvent
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
# No modifiers.
|
|
26
|
+
NONE = 0
|
|
27
|
+
|
|
28
|
+
# This mask is used to check whether one of the SHIFT meta keys is pressed.
|
|
29
|
+
META_SHIFT_ON = 0x01
|
|
30
|
+
META_SHIFT_LEFT_ON = 0x40
|
|
31
|
+
META_SHIFT_RIGHT_ON = 0x80
|
|
32
|
+
|
|
33
|
+
# This mask is used to check whether one of the ALT meta keys is pressed.
|
|
34
|
+
META_ALT_ON = 0x02
|
|
35
|
+
META_ALT_LEFT_ON = 0x10
|
|
36
|
+
META_ALT_RIGHT_ON = 0x20
|
|
37
|
+
|
|
38
|
+
# This mask is used to check whether one of the SYM meta keys is pressed.
|
|
39
|
+
META_SYM_ON = 0x04
|
|
40
|
+
|
|
41
|
+
# This mask is used to check whether the FUNCTION meta key is pressed.
|
|
42
|
+
META_FUNCTION_ON = 0x08
|
|
43
|
+
|
|
44
|
+
# This mask is used to check whether one of the CTRL meta keys is pressed.
|
|
45
|
+
META_CTRL_ON = 0x1000
|
|
46
|
+
META_CTRL_LEFT_ON = 0x2000
|
|
47
|
+
META_CTRL_RIGHT_ON = 0x4000
|
|
48
|
+
|
|
49
|
+
# This mask is used to check whether one of the META meta keys is pressed.
|
|
50
|
+
META_META_ON = 0x10000
|
|
51
|
+
META_META_LEFT_ON = 0x20000
|
|
52
|
+
META_META_RIGHT_ON = 0x40000
|
|
53
|
+
|
|
54
|
+
# Lock key states.
|
|
55
|
+
META_CAPS_LOCK_ON = 0x100000
|
|
56
|
+
META_NUM_LOCK_ON = 0x200000
|
|
57
|
+
META_SCROLL_LOCK_ON = 0x400000
|
|
58
|
+
|
|
59
|
+
|
|
16
60
|
class AndroidKey:
|
|
17
61
|
# Key code constant: Unknown key code.
|
|
18
62
|
UNKNOWN = 0
|
appium/webdriver/webdriver.py
CHANGED
|
@@ -303,7 +303,8 @@ class WebDriver(
|
|
|
303
303
|
direct_port = 'directConnectPort'
|
|
304
304
|
direct_path = 'directConnectPath'
|
|
305
305
|
|
|
306
|
-
|
|
306
|
+
if not self.caps:
|
|
307
|
+
raise ValueError('Driver capabilities must be defined')
|
|
307
308
|
if not {direct_protocol, direct_host, direct_port, direct_path}.issubset(set(self.caps)):
|
|
308
309
|
message = 'Direct connect capabilities from server were:\n'
|
|
309
310
|
for key in [direct_protocol, direct_host, direct_port, direct_path]:
|
|
@@ -283,7 +283,7 @@ appium/webdriver/errorhandler.py,sha256=1ZAqOf0fLZou3UkuE0sUzsIdUPm3hRU2PdxZCP6-
|
|
|
283
283
|
appium/webdriver/locator_converter.py,sha256=dMuYbnsm5X8IOCA-A_tEJtukLoBXK2YKG-bEBUBsoDQ,1024
|
|
284
284
|
appium/webdriver/mobilecommand.py,sha256=WUWAGTFFO11-Y5w6N-sQvsTkH8giDn8R8yrEUi8poh4,3347
|
|
285
285
|
appium/webdriver/switch_to.py,sha256=72NDbY-O8oQgAfEVC3ck3K5xE9Qo4hr8x4OWiK5lvjY,1205
|
|
286
|
-
appium/webdriver/webdriver.py,sha256=
|
|
286
|
+
appium/webdriver/webdriver.py,sha256=TRDqQij2h7RXcQbIgUd_HgWaBEHoiMD59KMcuu7LqfA,19246
|
|
287
287
|
appium/webdriver/webelement.py,sha256=DLbRAuEU3qCZi8V70WXYoj7Sy-UqH9fPSXowPSkgTmY,4438
|
|
288
288
|
appium/webdriver/common/__init__.py,sha256=4MapoJ3p5LiP0AsHMgL2xoPTIFno4dcH1GSoxaZzv4w,623
|
|
289
289
|
appium/webdriver/common/appiumby.py,sha256=1sFzgJht8v9pO0fG-uK1jgbb8zMJwfBy3LJH15OPqq8,1785
|
|
@@ -310,7 +310,7 @@ appium/webdriver/extensions/android/activities.py,sha256=aETvDVOtZOL2DGqoCCW-ieL
|
|
|
310
310
|
appium/webdriver/extensions/android/common.py,sha256=Lwk3CmMj2bTH9fn9i7NSaMvduQG9L-Yxxeyyli5U6HU,2441
|
|
311
311
|
appium/webdriver/extensions/android/display.py,sha256=Jl50B4gEJ5br32c4Hgm7hob05fqXbLVB7snmv_9SeLQ,1878
|
|
312
312
|
appium/webdriver/extensions/android/gsm.py,sha256=Ez7f90nGoL5hA1ocyEOcNDA3pFG6K63hZNWjqe7RlvU,5413
|
|
313
|
-
appium/webdriver/extensions/android/nativekey.py,sha256=
|
|
313
|
+
appium/webdriver/extensions/android/nativekey.py,sha256=rF4pYkGUJncCnzpK98L_NVAxGwoFmvlD8t9ccKvYIf4,31513
|
|
314
314
|
appium/webdriver/extensions/android/network.py,sha256=w10R_lY8gH7u30BU9Ff9tMUvko5bmOkhxIuP-exL0ZA,7233
|
|
315
315
|
appium/webdriver/extensions/android/performance.py,sha256=MF_FbnVoT9pV5mn1fvZGGoQQqKLzESjzfykjXgpGCd8,3555
|
|
316
316
|
appium/webdriver/extensions/android/power.py,sha256=kSMzlWhCtIPp6d3fRYP7gyrN0YVLNeXEQo-kjJ7Ik-Y,2990
|
|
@@ -320,7 +320,7 @@ appium/webdriver/extensions/flutter_integration/__init__.py,sha256=wSUl6yC2TJNla
|
|
|
320
320
|
appium/webdriver/extensions/flutter_integration/flutter_commands.py,sha256=zKWaVM-Vaqz-FxItSeYI7YXvld5DPrKhrXyrYPbRbFw,12125
|
|
321
321
|
appium/webdriver/extensions/flutter_integration/flutter_finder.py,sha256=P4rQpiye73aRBq5VOSt1vBD7rTDHrEv0052B1u81_YY,2184
|
|
322
322
|
appium/webdriver/extensions/flutter_integration/scroll_directions.py,sha256=CkOv7k21SMe-h2-EYSZ6MBKBGTRC1csQ-tuowHgMn0E,85
|
|
323
|
-
appium_python_client-5.
|
|
324
|
-
appium_python_client-5.
|
|
325
|
-
appium_python_client-5.
|
|
326
|
-
appium_python_client-5.
|
|
323
|
+
appium_python_client-5.3.1.dist-info/METADATA,sha256=ZIaatJt8qoyaQHK1OGMXDix38jJ25iDR-wLah9JTBts,20870
|
|
324
|
+
appium_python_client-5.3.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
325
|
+
appium_python_client-5.3.1.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
|
|
326
|
+
appium_python_client-5.3.1.dist-info/RECORD,,
|
|
File without changes
|
{appium_python_client-5.2.7.dist-info → appium_python_client-5.3.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|