appium.options.ios.XCUITestOptions#
- class XCUITestOptions#
- __init__() None#
Methods
__init__()as_w3c(capabilities)Formats given capabilities to a valid W3C session request object
enable_mobile([android_package, ...])Enables mobile browser use for browsers that support it.
get_capability(name)Fetches capability value or None if the capability is not set
ignore_local_proxy_environment_variables()Ignore HTTP_PROXY and HTTPS_PROXY environment variables.
load_capabilities(caps)Sets multiple capabilities
set_capability(name, value)Sets a capability.
to_capabilities()Convert options into capabilities dictionary.
to_w3c()Formats the instance to a valid W3C session request object
Attributes
W3C_CAPABILITY_NAMESabsolute_web_locationsWhether Get Element Location returns coordinates relative to the page origin for web view elements.
additional_webview_bundle_idsArray of possible bundle identifiers for webviews.
allow_provisioning_device_registrationWhether to allow xcodebuild to register your destination device on the developer portal.
appString representing app location.
app_install_strategyApp install strategy.
app_push_timeoutMaximum timeout for application upload.
auto_accept_alertsWhether to accept all alerts automatically.
auto_dismiss_alertsWhether to dismiss all alerts automatically.
auto_web_viewWhether the driver should try to automatically switch to a web view context after the session is started.
automation_nameString representing the name of the automation engine name.
browser_nameThe name of the browser to run the test on.
bundle_idThe bundle identifier of the application to automate.
calendar_access_authorizedWhether to enable calendar access on IOS Simulator.
calendar_formatCalendar format for the iOS Simulator.
capabilitiesclear_system_filesWhether the driver should delete generated files at the end of a session.
command_timeoutsCustom timeout(s) for WDA backend commands execution.
connect_hardware_keyboardWhether to connect hardware keyboard to Simulator.
custom_ssl_certSSL certificate content.
default_capabilitiesReturn minimal capabilities necessary as a dictionary.
derived_data_pathPath to the derived data WDA folder.
device_nameThe name of the device.
disable_automatic_screenshotsWhether to disable automatic XCTest screenshots.
enable_async_execute_from_httpsWhether to allow simulators to execute async JavaScript on pages using HTTPS.
enable_performance_loggingWhether to enable additional performance logging.
enforce_fresh_simulator_creationWhether to create a new simulator for each new test session.
event_timingsWhether the driver should to report the timings for various Appium-internal events.
force_app_launchWhether to enforce app restart on session startup.
force_simulator_software_keyboard_presenceWhether to enforce software keyboard presence.
full_context_listWhether to return the detailed information on contexts for the get available context command.
full_resetWhether the driver should perform a full reset.
include_device_caps_to_session_infoWhether to include screen information as the result of Get Session Capabilities.
include_safari_in_webviewsWhether to add Safari web views to the list of contexts available during a native/webview app test.
ios_simulator_logs_predicateGet Simulator log filtering predicate.
is_headlessWhether the driver should start emulator/simulator in headless mode.
keep_key_chainsWhether to preserve Simulator keychains after full reset.
keychain_passwordCustom keychain password.
keychain_pathPath to a custom keychain.
keychains_exclude_patternsKeychains exclude patterns.
languageLanguage abbreviation to use in a test session.
launch_with_idbWhether to launch WebDriverAgentRunner with idb instead of xcodebuild.
localeLocale abbreviation to use in a test session.
localizable_strings_dirResource folder name where the main locale strings are stored.
max_typing_frequencyThe number of keystrokes per minute.
mjpeg_server_portPort number on which WDA broadcasts screenshots stream encoded into MJPEG format from the device under test.
native_web_tapWhether to enable native taps in web view mode.
new_command_timeoutThe allowed time before seeing a new server command.
no_resetWhether the driver should not perform a reset.
orientationThe orientation of the device's screen.
other_appsLocations of apps to install before running a test.
permissionsGet Simulator permissions.
platform_versionThe platform version of an emulator or a real device.
prebuilt_wda_pathThe path to the prebuilt WebDriverAgent.
print_page_source_on_find_failureWhether the driver should print the page source to the log if a find failure occurs.
process_argumentsCommand line arguments and/or environment variables of the application under test.
reduce_motionWhether to reduce motion accessibility preference.
reset_location_serviceWhether to reset the location service in the session deletion on real devices.
reset_on_session_start_onlyWhether to perform Simulator reset on test session finish (false) or not (true).
result_bundle_pathPath where the resulting XCTest bundle should be stored.
safari_garbage_collectWhether to turn on garbage collection when executing scripts on Safari.
safari_ignore_fraud_warningWhether to prevent Safari from showing a fraudulent website warning.
safari_ignore_web_hostnamesComma-separated list of host names to be ignored.
safari_initial_urlThe initial safari url.
safari_log_all_communicationWhether to log of plists sent to and received from the Web Inspector.
safari_log_all_communication_hex_dumpWhether to log of plists sent to and received from the Web Inspector in hex dump format.
safari_open_links_in_backgroundWhether Safari should allow links to open in new windows.
safari_socket_chunk_sizeGet the size of a single remote debugger socket chunk.
safari_web_inspector_max_frame_lengthMaximum size in bytes of a single data frame for the Web Inspector.
scale_factorSimulator scale factor.
screenshot_qualityScreenshot quality value.
should_terminate_appWhether to enforce app termination on session quit.
should_use_singleton_test_managerWhether to use the default proxy for test management within WebDriverAgent.
show_ios_logWhether to show any logs captured from a device in the appium logs.
show_xcode_logWhether to display the output of the Xcode command used to run the tests.
shutdown_other_simulatorsWhether to shut down of other booted simulators except of the current one.
simple_is_visible_checkWhether to use native methods for determining visibility of elements.
simulator_devices_set_pathAlternative path to the simulator devices set.
simulator_pasteboard_automatic_syncPasteboard automation sync state.
simulator_startup_timeoutSimulator startup timeout.
simulator_trace_pointerWhether to highlight pointer moves in the Simulator window.
simulator_window_centerSimulator window center coordinates.
skip_log_captureWhether the driver should not record device logs.
udidThe unique identifier of the device under test.
updated_wda_bundle_idWDA bundle identifier.
use_json_sourceWhether to get JSON source from WDA and transform it to XML on the driver side.
use_native_caching_strategyWhether to use the native caching strategy.
use_new_wdaWhether whether to uninstall of any existing WebDriverAgent app on the device under test.
use_prebuilt_wdaWhether to skip the build phase of running the WDA app.
use_preinstalled_wdaWhether to use a preinstalled WebDriverAgent.
use_simple_build_testWhether to enforce app termination on session quit.
use_xctestrun_fileWhether to use of .xctestrun file to launch WDA.
wait_for_idle_timeoutMaximum timeout to wait until WDA responds to HTTP requests.
wait_for_quiescenceWhether to wait for application quiescence.
wda_base_urlPrefix to build a custom WebDriverAgent URL.
wda_connection_timeoutMaximum timeout to wait until WDA responds to HTTP requests.
wda_eventloop_idle_delayEvent loop idle delay.
wda_launch_timeoutMaximum timeout to wait until WDA is listening.
wda_local_portLocal port number where the WDA traffic is being forwarded.
wda_startup_retriesNumber of retries before to fail WDA deployment.
wda_startup_retry_intervalInterval to wait between tries to build and launch WebDriverAgent.
web_driver_agent_urlWedDriverAgent URL.
webkit_response_timeoutTime to wait for a response from WebKit in a Safari session.
webview_connect_retriesNumber of retries to send connection message to remote debugger, to get a webview.
webview_connect_timeoutTimeout to wait for the initial presence of webviews.
xcode_org_idSigning certificate organization id for WebDriverAgent compilation.
xcode_signing_idSigning certificate for WebDriverAgent compilation.
browser_versionGets and Sets the version of the browser.
platform_nameGets and Sets name of the platform.
accept_insecure_certsGets and Set whether the session accepts insecure certificates.
strict_file_interactabilityGets and Sets whether session is about file interactability.
set_window_rectGets and Sets window size and position.
enable_bidiGets and Set whether the session has WebDriverBiDi enabled.
page_load_strategyGets and Sets page load strategy, the default is "normal".
unhandled_prompt_behaviorGets and Sets unhandled prompt behavior, the default is "dismiss and notify".
timeoutsGets and Sets implicit timeout, pageLoad timeout and script timeout if set (in milliseconds).
proxySets and Gets Proxy.
enable_downloadsGets and Sets whether session can download files.
web_socket_urlGets and Sets WebSocket URL.