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_NAMES

absolute_web_locations

Whether Get Element Location returns coordinates relative to the page origin for web view elements.

additional_webview_bundle_ids

Array of possible bundle identifiers for webviews.

allow_provisioning_device_registration

Whether to allow xcodebuild to register your destination device on the developer portal.

app

String representing app location.

app_install_strategy

App install strategy.

app_push_timeout

Maximum timeout for application upload.

auto_accept_alerts

Whether to accept all alerts automatically.

auto_dismiss_alerts

Whether to dismiss all alerts automatically.

auto_web_view

Whether the driver should try to automatically switch to a web view context after the session is started.

automation_name

String representing the name of the automation engine name.

browser_name

The name of the browser to run the test on.

bundle_id

The bundle identifier of the application to automate.

calendar_access_authorized

Whether to enable calendar access on IOS Simulator.

calendar_format

Calendar format for the iOS Simulator.

capabilities

clear_system_files

Whether the driver should delete generated files at the end of a session.

command_timeouts

Custom timeout(s) for WDA backend commands execution.

connect_hardware_keyboard

Whether to connect hardware keyboard to Simulator.

custom_ssl_cert

SSL certificate content.

default_capabilities

Return minimal capabilities necessary as a dictionary.

derived_data_path

Path to the derived data WDA folder.

device_name

The name of the device.

disable_automatic_screenshots

Whether to disable automatic XCTest screenshots.

enable_async_execute_from_https

Whether to allow simulators to execute async JavaScript on pages using HTTPS.

enable_performance_logging

Whether to enable additional performance logging.

enforce_fresh_simulator_creation

Whether to create a new simulator for each new test session.

event_timings

Whether the driver should to report the timings for various Appium-internal events.

force_app_launch

Whether to enforce app restart on session startup.

force_simulator_software_keyboard_presence

Whether to enforce software keyboard presence.

full_context_list

Whether to return the detailed information on contexts for the get available context command.

full_reset

Whether the driver should perform a full reset.

include_device_caps_to_session_info

Whether to include screen information as the result of Get Session Capabilities.

include_safari_in_webviews

Whether to add Safari web views to the list of contexts available during a native/webview app test.

ios_simulator_logs_predicate

Get Simulator log filtering predicate.

is_headless

Whether the driver should start emulator/simulator in headless mode.

keep_key_chains

Whether to preserve Simulator keychains after full reset.

keychain_password

Custom keychain password.

keychain_path

Path to a custom keychain.

keychains_exclude_patterns

Keychains exclude patterns.

language

Language abbreviation to use in a test session.

launch_with_idb

Whether to launch WebDriverAgentRunner with idb instead of xcodebuild.

locale

Locale abbreviation to use in a test session.

localizable_strings_dir

Resource folder name where the main locale strings are stored.

max_typing_frequency

The number of keystrokes per minute.

mjpeg_server_port

Port number on which WDA broadcasts screenshots stream encoded into MJPEG format from the device under test.

native_web_tap

Whether to enable native taps in web view mode.

new_command_timeout

The allowed time before seeing a new server command.

no_reset

Whether the driver should not perform a reset.

orientation

The orientation of the device's screen.

other_apps

Locations of apps to install before running a test.

permissions

Get Simulator permissions.

platform_version

The platform version of an emulator or a real device.

prebuilt_wda_path

The path to the prebuilt WebDriverAgent.

print_page_source_on_find_failure

Whether the driver should print the page source to the log if a find failure occurs.

process_arguments

Command line arguments and/or environment variables of the application under test.

reduce_motion

Whether to reduce motion accessibility preference.

reset_location_service

Whether to reset the location service in the session deletion on real devices.

reset_on_session_start_only

Whether to perform Simulator reset on test session finish (false) or not (true).

result_bundle_path

Path where the resulting XCTest bundle should be stored.

safari_garbage_collect

Whether to turn on garbage collection when executing scripts on Safari.

safari_ignore_fraud_warning

Whether to prevent Safari from showing a fraudulent website warning.

safari_ignore_web_hostnames

Comma-separated list of host names to be ignored.

safari_initial_url

The initial safari url.

safari_log_all_communication

Whether to log of plists sent to and received from the Web Inspector.

safari_log_all_communication_hex_dump

Whether to log of plists sent to and received from the Web Inspector in hex dump format.

safari_open_links_in_background

Whether Safari should allow links to open in new windows.

safari_socket_chunk_size

Get the size of a single remote debugger socket chunk.

safari_web_inspector_max_frame_length

Maximum size in bytes of a single data frame for the Web Inspector.

scale_factor

Simulator scale factor.

screenshot_quality

Screenshot quality value.

should_terminate_app

Whether to enforce app termination on session quit.

should_use_singleton_test_manager

Whether to use the default proxy for test management within WebDriverAgent.

show_ios_log

Whether to show any logs captured from a device in the appium logs.

show_xcode_log

Whether to display the output of the Xcode command used to run the tests.

shutdown_other_simulators

Whether to shut down of other booted simulators except of the current one.

simple_is_visible_check

Whether to use native methods for determining visibility of elements.

simulator_devices_set_path

Alternative path to the simulator devices set.

simulator_pasteboard_automatic_sync

Pasteboard automation sync state.

simulator_startup_timeout

Simulator startup timeout.

simulator_trace_pointer

Whether to highlight pointer moves in the Simulator window.

simulator_window_center

Simulator window center coordinates.

skip_log_capture

Whether the driver should not record device logs.

udid

The unique identifier of the device under test.

updated_wda_bundle_id

WDA bundle identifier.

use_json_source

Whether to get JSON source from WDA and transform it to XML on the driver side.

use_native_caching_strategy

Whether to use the native caching strategy.

use_new_wda

Whether whether to uninstall of any existing WebDriverAgent app on the device under test.

use_prebuilt_wda

Whether to skip the build phase of running the WDA app.

use_preinstalled_wda

Whether to use a preinstalled WebDriverAgent.

use_simple_build_test

Whether to enforce app termination on session quit.

use_xctestrun_file

Whether to use of .xctestrun file to launch WDA.

wait_for_idle_timeout

Maximum timeout to wait until WDA responds to HTTP requests.

wait_for_quiescence

Whether to wait for application quiescence.

wda_base_url

Prefix to build a custom WebDriverAgent URL.

wda_connection_timeout

Maximum timeout to wait until WDA responds to HTTP requests.

wda_eventloop_idle_delay

Event loop idle delay.

wda_launch_timeout

Maximum timeout to wait until WDA is listening.

wda_local_port

Local port number where the WDA traffic is being forwarded.

wda_startup_retries

Number of retries before to fail WDA deployment.

wda_startup_retry_interval

Interval to wait between tries to build and launch WebDriverAgent.

web_driver_agent_url

WedDriverAgent URL.

webkit_response_timeout

Time to wait for a response from WebKit in a Safari session.

webview_connect_retries

Number of retries to send connection message to remote debugger, to get a webview.

webview_connect_timeout

Timeout to wait for the initial presence of webviews.

xcode_org_id

Signing certificate organization id for WebDriverAgent compilation.

xcode_signing_id

Signing certificate for WebDriverAgent compilation.

browser_version

Gets and Sets the version of the browser.

platform_name

Gets and Sets name of the platform.

accept_insecure_certs

Gets and Set whether the session accepts insecure certificates.

strict_file_interactability

Gets and Sets whether session is about file interactability.

set_window_rect

Gets and Sets window size and position.

enable_bidi

Gets and Set whether the session has WebDriverBiDi enabled.

page_load_strategy

Gets and Sets page load strategy, the default is "normal".

unhandled_prompt_behavior

Gets and Sets unhandled prompt behavior, the default is "dismiss and notify".

timeouts

Gets and Sets implicit timeout, pageLoad timeout and script timeout if set (in milliseconds).

proxy

Sets and Gets Proxy.

enable_downloads

Gets and Sets whether session can download files.

web_socket_url

Gets and Sets WebSocket URL.