selenium.webdriver.remote.mobile

Classes

Mobile(driver)
class selenium.webdriver.remote.mobile.Mobile(driver)[source]
AIRPLANE_MODE = <selenium.webdriver.remote.mobile._ConnectionType object>
ALL_NETWORK = <selenium.webdriver.remote.mobile._ConnectionType object>
ConnectionType

alias of _ConnectionType

DATA_NETWORK = <selenium.webdriver.remote.mobile._ConnectionType object>
WIFI_NETWORK = <selenium.webdriver.remote.mobile._ConnectionType object>
context

Returns the current context (Native or WebView).

contexts

Returns a list of available contexts.

network_connection
set_network_connection(network)[source]

Set the network connection for the remote device.

Example of setting airplane mode:

driver.mobile.set_network_connection(driver.mobile.AIRPLANE_MODE)