selenium.webdriver.remote.mobile

class selenium.webdriver.remote.mobile.Mobile(driver)[source]
AIRPLANE_MODE = <selenium.webdriver.remote.mobile.ConnectionType object at 0x10aac1350>
ALL_NETWORK = <selenium.webdriver.remote.mobile.ConnectionType object at 0x10aac1290>
class ConnectionType(mask)[source]
airplane_mode[source]
data[source]
wifi[source]
Mobile.DATA_NETWORK = <selenium.webdriver.remote.mobile.ConnectionType object at 0x10aac1310>
Mobile.WIFI_NETWORK = <selenium.webdriver.remote.mobile.ConnectionType object at 0x10aac12d0>
Mobile.context[source]

returns the current context (Native or WebView).

Mobile.contexts[source]

returns a list of available contexts

Mobile.network_connection[source]
Mobile.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)

This Page