Appium-Python-Client 6.0.0__py3-none-any.whl → 6.0.2__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/common/helper.py +2 -2
- appium/options/android/common/adb/adb_exec_timeout_option.py +2 -3
- appium/options/android/common/adb/adb_port_option.py +1 -2
- appium/options/android/common/adb/allow_delay_adb_option.py +1 -2
- appium/options/android/common/adb/build_tools_version_option.py +1 -2
- appium/options/android/common/adb/clear_device_logs_on_start_option.py +1 -2
- appium/options/android/common/adb/ignore_hidden_api_policy_error_option.py +1 -2
- appium/options/android/common/adb/logcat_filter_specs_option.py +1 -2
- appium/options/android/common/adb/logcat_format_option.py +1 -2
- appium/options/android/common/adb/mock_location_app_option.py +1 -2
- appium/options/android/common/adb/remote_adb_host_option.py +1 -2
- appium/options/android/common/adb/skip_logcat_capture_option.py +1 -2
- appium/options/android/common/adb/suppress_kill_server_option.py +1 -2
- appium/options/android/common/app/allow_test_packages_option.py +1 -2
- appium/options/android/common/app/android_install_timeout_option.py +2 -3
- appium/options/android/common/app/app_activity_option.py +1 -2
- appium/options/android/common/app/app_package_option.py +1 -2
- appium/options/android/common/app/app_wait_activity_option.py +1 -2
- appium/options/android/common/app/app_wait_duration_option.py +2 -3
- appium/options/android/common/app/app_wait_for_launch_option.py +1 -2
- appium/options/android/common/app/app_wait_package_option.py +1 -2
- appium/options/android/common/app/auto_grant_premissions_option.py +1 -2
- appium/options/android/common/app/enforce_app_install_option.py +1 -2
- appium/options/android/common/app/intent_action_option.py +1 -2
- appium/options/android/common/app/intent_category_option.py +1 -2
- appium/options/android/common/app/intent_flags_option.py +1 -2
- appium/options/android/common/app/optional_intent_arguments_option.py +1 -2
- appium/options/android/common/app/remote_apps_cache_limit_option.py +1 -2
- appium/options/android/common/app/uninstall_other_packages_option.py +1 -2
- appium/options/android/common/avd/avd_args_option.py +1 -2
- appium/options/android/common/avd/avd_env_option.py +2 -3
- appium/options/android/common/avd/avd_launch_timeout_option.py +2 -3
- appium/options/android/common/avd/avd_option.py +1 -2
- appium/options/android/common/avd/avd_ready_timeout_option.py +2 -3
- appium/options/android/common/avd/gps_enabled_option.py +1 -2
- appium/options/android/common/avd/network_speed_option.py +1 -2
- appium/options/android/common/context/auto_webview_timeout_option.py +2 -3
- appium/options/android/common/context/chrome_logging_prefs_option.py +3 -3
- appium/options/android/common/context/chrome_options_option.py +3 -3
- appium/options/android/common/context/chromedriver_args_option.py +2 -3
- appium/options/android/common/context/chromedriver_chrome_mapping_file_option.py +1 -2
- appium/options/android/common/context/chromedriver_disable_build_check_option.py +1 -2
- appium/options/android/common/context/chromedriver_executable_dir_option.py +1 -2
- appium/options/android/common/context/chromedriver_executable_option.py +1 -2
- appium/options/android/common/context/chromedriver_port_option.py +1 -2
- appium/options/android/common/context/chromedriver_ports_option.py +2 -3
- appium/options/android/common/context/chromedriver_use_system_executable_option.py +1 -2
- appium/options/android/common/context/ensure_webviews_have_pages_option.py +1 -2
- appium/options/android/common/context/extract_chrome_android_package_from_context_name_option.py +1 -2
- appium/options/android/common/context/native_web_screenshot_option.py +1 -2
- appium/options/android/common/context/recreate_chrome_driver_sessions_option.py +1 -2
- appium/options/android/common/context/show_chromedriver_log_option.py +1 -2
- appium/options/android/common/context/webview_devtools_port_option.py +1 -2
- appium/options/android/common/localization/locale_script_option.py +1 -2
- appium/options/android/common/locking/skip_unlock_option.py +1 -2
- appium/options/android/common/locking/unlock_key_option.py +1 -2
- appium/options/android/common/locking/unlock_strategy_option.py +1 -2
- appium/options/android/common/locking/unlock_success_timeout_option.py +2 -3
- appium/options/android/common/locking/unlock_type_option.py +1 -2
- appium/options/android/common/mjpeg/mjpeg_screenshot_url_option.py +1 -2
- appium/options/android/common/other/disable_suppress_accessibility_service_option.py +1 -2
- appium/options/android/common/other/user_profile_option.py +1 -2
- appium/options/android/common/signing/key_alias_option.py +1 -2
- appium/options/android/common/signing/key_password_option.py +1 -2
- appium/options/android/common/signing/keystore_password_option.py +1 -2
- appium/options/android/common/signing/keystore_path_option.py +1 -2
- appium/options/android/common/signing/no_sign_option.py +1 -2
- appium/options/android/common/signing/use_keystore_option.py +1 -2
- appium/options/android/espresso/activity_options_option.py +2 -3
- appium/options/android/espresso/app_locale_option.py +2 -3
- appium/options/android/espresso/base.py +1 -2
- appium/options/android/espresso/espresso_build_config_option.py +3 -3
- appium/options/android/espresso/espresso_server_launch_timeout_option.py +2 -3
- appium/options/android/espresso/force_espresso_rebuild_option.py +1 -2
- appium/options/android/espresso/intent_options_option.py +3 -3
- appium/options/android/espresso/show_gradle_log_option.py +1 -2
- appium/options/android/uiautomator2/base.py +1 -2
- appium/options/android/uiautomator2/disable_window_animation_option.py +1 -2
- appium/options/android/uiautomator2/mjpeg_server_port_option.py +1 -2
- appium/options/android/uiautomator2/skip_device_initialization_option.py +1 -2
- appium/options/android/uiautomator2/skip_server_installation_option.py +1 -2
- appium/options/android/uiautomator2/uiautomator2_server_install_timeout_option.py +2 -3
- appium/options/android/uiautomator2/uiautomator2_server_launch_timeout_option.py +2 -3
- appium/options/android/uiautomator2/uiautomator2_server_read_timeout_option.py +2 -3
- appium/options/common/app_option.py +1 -2
- appium/options/common/auto_web_view_option.py +1 -2
- appium/options/common/automation_name_option.py +1 -2
- appium/options/common/base.py +7 -7
- appium/options/common/browser_name_option.py +1 -2
- appium/options/common/bundle_id_option.py +1 -2
- appium/options/common/clear_system_files_option.py +1 -2
- appium/options/common/device_name_option.py +1 -2
- appium/options/common/enable_performance_logging_option.py +1 -2
- appium/options/common/event_timings_option.py +1 -2
- appium/options/common/full_reset_option.py +1 -2
- appium/options/common/is_headless_option.py +1 -2
- appium/options/common/language_option.py +1 -2
- appium/options/common/locale_option.py +1 -2
- appium/options/common/new_command_timeout_option.py +2 -3
- appium/options/common/no_reset_option.py +1 -2
- appium/options/common/orientation_option.py +1 -2
- appium/options/common/other_apps_option.py +1 -2
- appium/options/common/platform_version_option.py +1 -2
- appium/options/common/postrun_option.py +2 -3
- appium/options/common/prerun_option.py +2 -3
- appium/options/common/print_page_source_on_find_failure_option.py +1 -2
- appium/options/common/skip_log_capture_option.py +1 -2
- appium/options/common/system_host_option.py +1 -2
- appium/options/common/system_port_option.py +1 -2
- appium/options/common/udid_option.py +1 -2
- appium/options/flutter_integration/base.py +1 -2
- appium/options/flutter_integration/flutter_element_wait_timeout_option.py +2 -3
- appium/options/flutter_integration/flutter_server_launch_timeout_option.py +2 -3
- appium/options/flutter_integration/flutter_system_port_option.py +1 -2
- appium/options/gecko/android_storage_option.py +1 -2
- appium/options/gecko/base.py +1 -2
- appium/options/gecko/firefox_options_option.py +3 -3
- appium/options/gecko/marionette_port_option.py +1 -2
- appium/options/gecko/verbosity_option.py +1 -2
- appium/options/ios/safari/automatic_inspection_option.py +1 -2
- appium/options/ios/safari/automatic_profiling_option.py +1 -2
- appium/options/ios/safari/base.py +1 -2
- appium/options/ios/safari/device_name_option.py +1 -2
- appium/options/ios/safari/device_type_option.py +1 -2
- appium/options/ios/safari/device_udid_option.py +1 -2
- appium/options/ios/safari/platform_build_version_option.py +1 -2
- appium/options/ios/safari/platform_version_option.py +1 -2
- appium/options/ios/safari/use_simulator_option.py +1 -2
- appium/options/ios/safari/webkit_webrtc_option.py +3 -3
- appium/options/ios/xcuitest/app/app_install_strategy_option.py +1 -2
- appium/options/ios/xcuitest/app/app_push_timeout_option.py +2 -3
- appium/options/ios/xcuitest/app/localizable_strings_dir_option.py +1 -2
- appium/options/ios/xcuitest/base.py +1 -2
- appium/options/ios/xcuitest/general/include_device_caps_to_session_info_option.py +1 -2
- appium/options/ios/xcuitest/general/reset_location_service_option.py +1 -2
- appium/options/ios/xcuitest/other/command_timeouts_option.py +2 -3
- appium/options/ios/xcuitest/other/launch_with_idb_option.py +1 -2
- appium/options/ios/xcuitest/other/show_ios_log_option.py +1 -2
- appium/options/ios/xcuitest/other/use_json_source_option.py +1 -2
- appium/options/ios/xcuitest/simulator/calendar_access_authorized_option.py +1 -2
- appium/options/ios/xcuitest/simulator/calendar_format_option.py +1 -2
- appium/options/ios/xcuitest/simulator/connect_hardware_keyboard_option.py +1 -2
- appium/options/ios/xcuitest/simulator/custom_ssl_cert_option.py +1 -2
- appium/options/ios/xcuitest/simulator/enforce_fresh_simulator_creation_option.py +1 -2
- appium/options/ios/xcuitest/simulator/force_simulator_software_keyboard_presence_option.py +1 -2
- appium/options/ios/xcuitest/simulator/ios_simulator_logs_predicate_option.py +1 -2
- appium/options/ios/xcuitest/simulator/keep_key_chains_option.py +1 -2
- appium/options/ios/xcuitest/simulator/keychains_exclude_patterns_option.py +1 -2
- appium/options/ios/xcuitest/simulator/permissions_option.py +2 -3
- appium/options/ios/xcuitest/simulator/reduce_motion_option.py +1 -2
- appium/options/ios/xcuitest/simulator/reset_on_session_start_only_option.py +1 -2
- appium/options/ios/xcuitest/simulator/scale_factor_option.py +1 -2
- appium/options/ios/xcuitest/simulator/shutdown_other_simulators_option.py +1 -2
- appium/options/ios/xcuitest/simulator/simulator_devices_set_path_option.py +1 -2
- appium/options/ios/xcuitest/simulator/simulator_pasteboard_automatic_sync_option.py +1 -2
- appium/options/ios/xcuitest/simulator/simulator_startup_timeout_option.py +2 -3
- appium/options/ios/xcuitest/simulator/simulator_trace_pointer_option.py +1 -2
- appium/options/ios/xcuitest/simulator/simulator_window_center_option.py +1 -2
- appium/options/ios/xcuitest/wda/allow_provisioning_device_regitration_option.py +1 -2
- appium/options/ios/xcuitest/wda/auto_accept_alerts_option.py +1 -2
- appium/options/ios/xcuitest/wda/auto_disimiss_alerts_option.py +1 -2
- appium/options/ios/xcuitest/wda/derived_data_path_option.py +1 -2
- appium/options/ios/xcuitest/wda/disable_automatic_screenshots_option.py +1 -2
- appium/options/ios/xcuitest/wda/force_app_launch_option.py +1 -2
- appium/options/ios/xcuitest/wda/keychain_password_option.py +1 -2
- appium/options/ios/xcuitest/wda/keychain_path_option.py +1 -2
- appium/options/ios/xcuitest/wda/max_typing_frequency_option.py +1 -2
- appium/options/ios/xcuitest/wda/mjpeg_server_port_option.py +1 -2
- appium/options/ios/xcuitest/wda/prebuilt_wda_path_option.py +1 -2
- appium/options/ios/xcuitest/wda/process_arguments_option.py +2 -3
- appium/options/ios/xcuitest/wda/result_bundle_path_option.py +1 -2
- appium/options/ios/xcuitest/wda/screenshot_quality_option.py +1 -2
- appium/options/ios/xcuitest/wda/should_terminate_app_option.py +1 -2
- appium/options/ios/xcuitest/wda/should_use_singleton_test_manager_option.py +1 -2
- appium/options/ios/xcuitest/wda/show_xcode_log_option.py +1 -2
- appium/options/ios/xcuitest/wda/simple_is_visible_check_option.py +1 -2
- appium/options/ios/xcuitest/wda/updated_wda_bundle_id_option.py +1 -2
- appium/options/ios/xcuitest/wda/use_native_caching_strategy_option.py +1 -2
- appium/options/ios/xcuitest/wda/use_new_wda_option.py +1 -2
- appium/options/ios/xcuitest/wda/use_prebuilt_wda_option.py +1 -2
- appium/options/ios/xcuitest/wda/use_preinstalled_wda_option.py +1 -2
- appium/options/ios/xcuitest/wda/use_simple_build_test_option.py +1 -2
- appium/options/ios/xcuitest/wda/use_xctestrun_file_option.py +1 -2
- appium/options/ios/xcuitest/wda/wait_for_idle_timeout_option.py +2 -3
- appium/options/ios/xcuitest/wda/wait_for_quiescence_option.py +2 -3
- appium/options/ios/xcuitest/wda/wda_base_url_option.py +1 -2
- appium/options/ios/xcuitest/wda/wda_connection_timeout_option.py +2 -3
- appium/options/ios/xcuitest/wda/wda_eventloop_idle_delay_option.py +2 -3
- appium/options/ios/xcuitest/wda/wda_launch_timeout_option.py +2 -3
- appium/options/ios/xcuitest/wda/wda_local_port_option.py +1 -2
- appium/options/ios/xcuitest/wda/wda_startup_retries_option.py +1 -2
- appium/options/ios/xcuitest/wda/wda_startup_retry_interval_option.py +2 -3
- appium/options/ios/xcuitest/wda/web_driver_agent_url_option.py +1 -2
- appium/options/ios/xcuitest/wda/xcode_org_id_option.py +1 -2
- appium/options/ios/xcuitest/wda/xcode_signing_id_option.py +1 -2
- appium/options/ios/xcuitest/webview/absolute_web_locations_option.py +1 -2
- appium/options/ios/xcuitest/webview/additional_webview_bundle_ids_option.py +2 -3
- appium/options/ios/xcuitest/webview/enable_async_execute_from_https_option.py +1 -2
- appium/options/ios/xcuitest/webview/full_context_list_option.py +1 -2
- appium/options/ios/xcuitest/webview/include_safari_in_webviews_option.py +1 -2
- appium/options/ios/xcuitest/webview/native_web_tap_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_garbage_collect_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_ignore_fraud_warning_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_ignore_web_hostnames_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_initial_url_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_log_all_communication_hex_dump_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_log_all_communication_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_open_links_in_background_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_socket_chunk_size_option.py +1 -2
- appium/options/ios/xcuitest/webview/safari_web_inspector_max_frame_length_option.py +1 -2
- appium/options/ios/xcuitest/webview/webkit_response_timeout_option.py +2 -3
- appium/options/ios/xcuitest/webview/webview_connect_retries_option.py +1 -2
- appium/options/ios/xcuitest/webview/webview_connect_timeout_option.py +2 -3
- appium/options/mac/mac2/app_path_option.py +2 -3
- appium/options/mac/mac2/arguments_option.py +2 -3
- appium/options/mac/mac2/base.py +3 -4
- appium/options/mac/mac2/bootstrap_root_option.py +1 -2
- appium/options/mac/mac2/environment_option.py +2 -3
- appium/options/mac/mac2/server_startup_timeout_option.py +2 -3
- appium/options/mac/mac2/show_server_logs_option.py +1 -2
- appium/options/mac/mac2/skip_app_kill_option.py +1 -2
- appium/options/mac/mac2/web_driver_agent_mac_url_option.py +1 -2
- appium/options/windows/windows/app_arguments_option.py +1 -2
- appium/options/windows/windows/app_top_level_window_option.py +1 -2
- appium/options/windows/windows/app_working_dir_option.py +1 -2
- appium/options/windows/windows/base.py +3 -4
- appium/options/windows/windows/create_session_timeout_option.py +2 -3
- appium/options/windows/windows/expreimental_web_driver_option.py +1 -2
- appium/options/windows/windows/wait_for_app_launch_option.py +2 -3
- appium/protocols/webdriver/can_execute_commands.py +2 -2
- appium/protocols/webdriver/can_execute_scripts.py +3 -3
- appium/protocols/webdriver/can_find_elements.py +3 -3
- appium/webdriver/appium_connection.py +3 -3
- appium/webdriver/appium_service.py +24 -20
- appium/webdriver/errorhandler.py +7 -6
- appium/webdriver/extensions/action_helpers.py +5 -7
- appium/webdriver/extensions/android/performance.py +3 -6
- appium/webdriver/extensions/android/system_bars.py +1 -2
- appium/webdriver/extensions/applications.py +2 -2
- appium/webdriver/extensions/clipboard.py +2 -3
- appium/webdriver/extensions/context.py +1 -2
- appium/webdriver/extensions/device_time.py +1 -2
- appium/webdriver/extensions/execute_driver.py +4 -4
- appium/webdriver/extensions/execute_mobile_command.py +2 -2
- appium/webdriver/extensions/flutter_integration/flutter_commands.py +17 -20
- appium/webdriver/extensions/flutter_integration/flutter_finder.py +3 -3
- appium/webdriver/extensions/hw_actions.py +1 -2
- appium/webdriver/extensions/images_comparison.py +5 -5
- appium/webdriver/extensions/keyboard.py +4 -5
- appium/webdriver/extensions/location.py +6 -7
- appium/webdriver/extensions/log_event.py +1 -2
- appium/webdriver/extensions/logs.py +3 -3
- appium/webdriver/extensions/remote_fs.py +2 -3
- appium/webdriver/extensions/screen_record.py +11 -2
- appium/webdriver/extensions/session.py +1 -2
- appium/webdriver/extensions/settings.py +3 -3
- appium/webdriver/locator_converter.py +1 -2
- appium/webdriver/switch_to.py +1 -2
- appium/webdriver/webdriver.py +18 -17
- appium/webdriver/webelement.py +6 -5
- {appium_python_client-6.0.0.dist-info → appium_python_client-6.0.2.dist-info}/METADATA +16 -15
- appium_python_client-6.0.2.dist-info/RECORD +325 -0
- {appium_python_client-6.0.0.dist-info → appium_python_client-6.0.2.dist-info}/WHEEL +1 -1
- appium_python_client-6.0.0.dist-info/RECORD +0 -325
- {appium_python_client-6.0.0.dist-info → appium_python_client-6.0.2.dist-info}/licenses/LICENSE +0 -0
appium/common/helper.py
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
import base64
|
|
16
|
-
from typing import Any
|
|
16
|
+
from typing import Any
|
|
17
17
|
|
|
18
18
|
from appium import version as appium_version
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
def extract_const_attributes(cls: type) ->
|
|
21
|
+
def extract_const_attributes(cls: type) -> dict[str, Any]:
|
|
22
22
|
"""Return dict with constants attributes and values in the class(e.g. {'VAL1': 1, 'VAL2': 2})
|
|
23
23
|
|
|
24
24
|
Args:
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
18
|
from datetime import timedelta
|
|
19
|
-
from typing import Optional, Union
|
|
20
19
|
|
|
21
20
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
22
21
|
|
|
@@ -25,7 +24,7 @@ ADB_EXEC_TIMEOUT = 'adbExecTimeout'
|
|
|
25
24
|
|
|
26
25
|
class AdbExecTimeoutOption(SupportsCapabilities):
|
|
27
26
|
@property
|
|
28
|
-
def adb_exec_timeout(self) ->
|
|
27
|
+
def adb_exec_timeout(self) -> timedelta | None:
|
|
29
28
|
"""
|
|
30
29
|
Maximum time to wait until single ADB command is executed.
|
|
31
30
|
"""
|
|
@@ -33,7 +32,7 @@ class AdbExecTimeoutOption(SupportsCapabilities):
|
|
|
33
32
|
return None if value is None else timedelta(milliseconds=value)
|
|
34
33
|
|
|
35
34
|
@adb_exec_timeout.setter
|
|
36
|
-
def adb_exec_timeout(self, value:
|
|
35
|
+
def adb_exec_timeout(self, value: timedelta | int) -> None:
|
|
37
36
|
"""
|
|
38
37
|
Maximum time to wait until single ADB command is executed.
|
|
39
38
|
20000 ms by default.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ ADB_PORT = 'adbPort'
|
|
|
24
23
|
|
|
25
24
|
class AdbPortOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def adb_port(self) ->
|
|
26
|
+
def adb_port(self) -> int | None:
|
|
28
27
|
"""
|
|
29
28
|
Number of the port where ADB is running.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ ALLOW_DELAY_ADB = 'allowDelayAdb'
|
|
|
24
23
|
|
|
25
24
|
class AllowDelayAdbOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def allow_delay_adb(self) ->
|
|
26
|
+
def allow_delay_adb(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Whether to prevent the emulator to use -delay-adb feature.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ BUILD_TOOLS_VERSION = 'buildToolsVersion'
|
|
|
24
23
|
|
|
25
24
|
class BuildToolsVersionOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def build_tools_version(self) ->
|
|
26
|
+
def build_tools_version(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Version of Android build tools to use.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ CLEAR_DEVICE_LOGS_ON_START = 'clearDeviceLogsOnStart'
|
|
|
24
23
|
|
|
25
24
|
class ClearDeviceLogsOnStartOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def clear_device_logs_on_start(self) ->
|
|
26
|
+
def clear_device_logs_on_start(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Makes the driver to delete all the existing logs in the
|
|
30
29
|
device buffer before starting a new test.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ IGNORE_HIDDEN_API_POLICY_ERROR = 'ignoreHiddenApiPolicyError'
|
|
|
24
23
|
|
|
25
24
|
class IgnoreHiddenApiPolicyErrorOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def ignore_hidden_api_policy_error(self) ->
|
|
26
|
+
def ignore_hidden_api_policy_error(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Whether to ignore a failure while changing hidden API access policies.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ LOGCAT_FILTER_SPECS = 'logcatFilterSpecs'
|
|
|
24
23
|
|
|
25
24
|
class LogcatFilterSpecsOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def logcat_filter_specs(self) ->
|
|
26
|
+
def logcat_filter_specs(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Logcat filter format.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ LOGCAT_FORMAT = 'logcatFormat'
|
|
|
24
23
|
|
|
25
24
|
class LogcatFormatOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def logcat_format(self) ->
|
|
26
|
+
def logcat_format(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Log print format.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ MOCK_LOCATION_APP = 'mockLocationApp'
|
|
|
24
23
|
|
|
25
24
|
class MockLocationAppOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def mock_location_app(self) ->
|
|
26
|
+
def mock_location_app(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Identifier of the app, which is used as a system mock location provider.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ REMOTE_ADB_HOST = 'remoteAdbHost'
|
|
|
24
23
|
|
|
25
24
|
class RemoteAdbHostOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def remote_adb_host(self) ->
|
|
26
|
+
def remote_adb_host(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Address of the host where ADB is running.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ SKIP_LOGCAT_CAPTURE = 'skipLogcatCapture'
|
|
|
24
23
|
|
|
25
24
|
class SkipLogcatCaptureOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def skip_logcat_capture(self) ->
|
|
26
|
+
def skip_logcat_capture(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Whether to delete all the existing logs in the
|
|
30
29
|
device buffer before starting a new test.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ SUPPRESS_KILL_SERVER = 'suppressKillServer'
|
|
|
24
23
|
|
|
25
24
|
class SuppressKillServerOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def suppress_kill_server(self) ->
|
|
26
|
+
def suppress_kill_server(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Prevents the driver from ever killing the ADB server explicitly.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ ALLOW_TEST_PACKAGES = 'allowTestPackages'
|
|
|
24
23
|
|
|
25
24
|
class AllowTestPackagesOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def allow_test_packages(self) ->
|
|
26
|
+
def allow_test_packages(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Whether it is possible to use packages built with the test flag for
|
|
30
29
|
the automated testing (literally adds -t flag to the adb install command).
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
18
|
from datetime import timedelta
|
|
19
|
-
from typing import Optional, Union
|
|
20
19
|
|
|
21
20
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
22
21
|
|
|
@@ -25,7 +24,7 @@ ANDROID_INSTALL_TIMEOUT = 'androidInstallTimeout'
|
|
|
25
24
|
|
|
26
25
|
class AndroidInstallTimeoutOption(SupportsCapabilities):
|
|
27
26
|
@property
|
|
28
|
-
def android_install_timeout(self) ->
|
|
27
|
+
def android_install_timeout(self) -> timedelta | None:
|
|
29
28
|
"""
|
|
30
29
|
Maximum amount of time to wait until the application under test is installed.
|
|
31
30
|
"""
|
|
@@ -33,7 +32,7 @@ class AndroidInstallTimeoutOption(SupportsCapabilities):
|
|
|
33
32
|
return None if value is None else timedelta(milliseconds=value)
|
|
34
33
|
|
|
35
34
|
@android_install_timeout.setter
|
|
36
|
-
def android_install_timeout(self, value:
|
|
35
|
+
def android_install_timeout(self, value: timedelta | int) -> None:
|
|
37
36
|
"""
|
|
38
37
|
Maximum amount of time to wait until the application under test is installed.
|
|
39
38
|
90000 ms by default
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ APP_ACTIVITY = 'appActivity'
|
|
|
24
23
|
|
|
25
24
|
class AppActivityOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def app_activity(self) ->
|
|
26
|
+
def app_activity(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Name of the main app activity.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ APP_PACKAGE = 'appPackage'
|
|
|
24
23
|
|
|
25
24
|
class AppPackageOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def app_package(self) ->
|
|
26
|
+
def app_package(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
App package identifier.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ APP_WAIT_ACTIVITY = 'appWaitActivity'
|
|
|
24
23
|
|
|
25
24
|
class AppWaitActivityOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def app_wait_activity(self) ->
|
|
26
|
+
def app_wait_activity(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Name of the app activity to wait for.
|
|
30
29
|
"""
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
18
|
from datetime import timedelta
|
|
19
|
-
from typing import Optional, Union
|
|
20
19
|
|
|
21
20
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
22
21
|
|
|
@@ -25,7 +24,7 @@ APP_WAIT_DURATION = 'appWaitDuration'
|
|
|
25
24
|
|
|
26
25
|
class AppWaitDurationOption(SupportsCapabilities):
|
|
27
26
|
@property
|
|
28
|
-
def app_wait_duration(self) ->
|
|
27
|
+
def app_wait_duration(self) -> timedelta | None:
|
|
29
28
|
"""
|
|
30
29
|
Identifier of the app package to wait for.
|
|
31
30
|
"""
|
|
@@ -33,7 +32,7 @@ class AppWaitDurationOption(SupportsCapabilities):
|
|
|
33
32
|
return None if value is None else timedelta(milliseconds=value)
|
|
34
33
|
|
|
35
34
|
@app_wait_duration.setter
|
|
36
|
-
def app_wait_duration(self, value:
|
|
35
|
+
def app_wait_duration(self, value: timedelta | int) -> None:
|
|
37
36
|
"""
|
|
38
37
|
Maximum amount of time to wait until the application under test is started
|
|
39
38
|
(e.g. an activity returns the control to the caller). 20000 ms by default.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ APP_WAIT_FOR_LAUNCH = 'appWaitForLaunch'
|
|
|
24
23
|
|
|
25
24
|
class AppWaitForLaunchOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def app_wait_for_launch(self) ->
|
|
26
|
+
def app_wait_for_launch(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Whether to block until the app under test returns the control to the
|
|
30
29
|
caller after its activity has been started by Activity Manager.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ APP_WAIT_PACKAGE = 'appWaitPackage'
|
|
|
24
23
|
|
|
25
24
|
class AppWaitPackageOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def app_wait_package(self) ->
|
|
26
|
+
def app_wait_package(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Identifier of the app package to wait for.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ AUTO_GRANT_PERMISSIONS = 'autoGrantPermissions'
|
|
|
24
23
|
|
|
25
24
|
class AutoGrantPermissionsOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def auto_grant_permissions(self) ->
|
|
26
|
+
def auto_grant_permissions(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Whether to grant all the requested application permissions
|
|
30
29
|
automatically when a test starts.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ ENFORCE_APP_INSTALL = 'enforceAppInstall'
|
|
|
24
23
|
|
|
25
24
|
class EnforceAppInstallOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def enforce_app_install(self) ->
|
|
26
|
+
def enforce_app_install(self) -> bool | None:
|
|
28
27
|
"""
|
|
29
28
|
Whether the application under test is always reinstalled even
|
|
30
29
|
if a newer version of it already exists on the device under test.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ INTENT_ACTION = 'intentAction'
|
|
|
24
23
|
|
|
25
24
|
class IntentActionOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def intent_action(self) ->
|
|
26
|
+
def intent_action(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Intent action to be applied when
|
|
30
29
|
starting the given appActivity by Activity Manager.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ INTENT_CATEGORY = 'intentCategory'
|
|
|
24
23
|
|
|
25
24
|
class IntentCategoryOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def intent_category(self) ->
|
|
26
|
+
def intent_category(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Intent category to be applied when
|
|
30
29
|
starting the given appActivity by Activity Manager.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ INTENT_FLAGS = 'intentFlags'
|
|
|
24
23
|
|
|
25
24
|
class IntentFlagsOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def intent_flags(self) ->
|
|
26
|
+
def intent_flags(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Intent flags to be applied when
|
|
30
29
|
starting the given appActivity by Activity Manager.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ OPTIONAL_INTENT_ARGUMENTS = 'optionalIntentArguments'
|
|
|
24
23
|
|
|
25
24
|
class OptionalIntentArgumentsOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def optional_intent_arguments(self) ->
|
|
26
|
+
def optional_intent_arguments(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Intent arguments to be applied when
|
|
30
29
|
starting the given appActivity by Activity Manager.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ REMOTE_APPS_CACHE_LIMIT = 'remoteAppsCacheLimit'
|
|
|
24
23
|
|
|
25
24
|
class RemoteAppsCacheLimitOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def remote_apps_cache_limit(self) ->
|
|
26
|
+
def remote_apps_cache_limit(self) -> int | None:
|
|
28
27
|
"""
|
|
29
28
|
Maximum amount of apps that could be cached on the remote device.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ UNINSTALL_OTHER_PACKAGES = 'uninstallOtherPackages'
|
|
|
24
23
|
|
|
25
24
|
class UninstallOtherPackagesOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def uninstall_other_packages(self) ->
|
|
26
|
+
def uninstall_other_packages(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Identifiers of packages to be uninstalled from the device before a test starts.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ AVD_ARGS = 'avdArgs'
|
|
|
24
23
|
|
|
25
24
|
class AvdArgsOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def avd_args(self) ->
|
|
26
|
+
def avd_args(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Emulator command line arguments.
|
|
30
29
|
"""
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Dict, Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,14 +23,14 @@ AVD_ENV = 'avdEnv'
|
|
|
24
23
|
|
|
25
24
|
class AvdEnvOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def avd_env(self) ->
|
|
26
|
+
def avd_env(self) -> dict[str, str] | None:
|
|
28
27
|
"""
|
|
29
28
|
Mapping of emulator environment variables.
|
|
30
29
|
"""
|
|
31
30
|
return self.get_capability(AVD_ENV)
|
|
32
31
|
|
|
33
32
|
@avd_env.setter
|
|
34
|
-
def avd_env(self, value:
|
|
33
|
+
def avd_env(self, value: dict[str, str]) -> None:
|
|
35
34
|
"""
|
|
36
35
|
Set the mapping of emulator environment variables.
|
|
37
36
|
"""
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
18
|
from datetime import timedelta
|
|
19
|
-
from typing import Optional, Union
|
|
20
19
|
|
|
21
20
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
22
21
|
|
|
@@ -25,7 +24,7 @@ AVD_LAUNCH_TIMEOUT = 'avdLaunchTimeout'
|
|
|
25
24
|
|
|
26
25
|
class AvdLaunchTimeoutOption(SupportsCapabilities):
|
|
27
26
|
@property
|
|
28
|
-
def avd_launch_timeout(self) ->
|
|
27
|
+
def avd_launch_timeout(self) -> timedelta | None:
|
|
29
28
|
"""
|
|
30
29
|
Timeout to wait until Android Emulator is started.
|
|
31
30
|
"""
|
|
@@ -33,7 +32,7 @@ class AvdLaunchTimeoutOption(SupportsCapabilities):
|
|
|
33
32
|
return None if value is None else timedelta(milliseconds=value)
|
|
34
33
|
|
|
35
34
|
@avd_launch_timeout.setter
|
|
36
|
-
def avd_launch_timeout(self, value:
|
|
35
|
+
def avd_launch_timeout(self, value: timedelta | int) -> None:
|
|
37
36
|
"""
|
|
38
37
|
Maximum timeout to wait until Android Emulator is started.
|
|
39
38
|
60000 ms by default.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
# specific language governing permissions and limitations
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
|
-
from typing import Optional
|
|
19
18
|
|
|
20
19
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
21
20
|
|
|
@@ -24,7 +23,7 @@ AVD = 'avd'
|
|
|
24
23
|
|
|
25
24
|
class AvdOption(SupportsCapabilities):
|
|
26
25
|
@property
|
|
27
|
-
def avd(self) ->
|
|
26
|
+
def avd(self) -> str | None:
|
|
28
27
|
"""
|
|
29
28
|
Name of Android emulator to run the test on.
|
|
30
29
|
"""
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
# under the License.
|
|
17
17
|
|
|
18
18
|
from datetime import timedelta
|
|
19
|
-
from typing import Optional, Union
|
|
20
19
|
|
|
21
20
|
from appium.options.common.supports_capabilities import SupportsCapabilities
|
|
22
21
|
|
|
@@ -25,7 +24,7 @@ AVD_READY_TIMEOUT = 'avdReadyTimeout'
|
|
|
25
24
|
|
|
26
25
|
class AvdReadyTimeoutOption(SupportsCapabilities):
|
|
27
26
|
@property
|
|
28
|
-
def avd_ready_timeout(self) ->
|
|
27
|
+
def avd_ready_timeout(self) -> timedelta | None:
|
|
29
28
|
"""
|
|
30
29
|
Timeout to wait until Android Emulator is fully booted and is ready for usage.
|
|
31
30
|
"""
|
|
@@ -33,7 +32,7 @@ class AvdReadyTimeoutOption(SupportsCapabilities):
|
|
|
33
32
|
return None if value is None else timedelta(milliseconds=value)
|
|
34
33
|
|
|
35
34
|
@avd_ready_timeout.setter
|
|
36
|
-
def avd_ready_timeout(self, value:
|
|
35
|
+
def avd_ready_timeout(self, value: timedelta | int) -> None:
|
|
37
36
|
"""
|
|
38
37
|
Maximum timeout to wait until Android Emulator is fully booted and is ready for usage.
|
|
39
38
|
60000 ms by default
|