selenium.webdriver.remote.mobile

Classes

Mobile(driver)

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

returns the current context (Native or WebView).

property contexts

returns a list of available contexts.