selenium.webdriver.remote.mobile

Classes

Mobile(driver)
class selenium.webdriver.remote.mobile.Mobile(driver)[source]
AIRPLANE_MODE = <selenium.webdriver.remote.mobile.Mobile.ConnectionType object>
ALL_NETWORK = <selenium.webdriver.remote.mobile.Mobile.ConnectionType object>
class ConnectionType(mask)[source]
airplane_mode
data
wifi
DATA_NETWORK = <selenium.webdriver.remote.mobile.Mobile.ConnectionType object>
WIFI_NETWORK = <selenium.webdriver.remote.mobile.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)