def __init__(self, host="localhost", port=4444, desired_capabilities=DesiredCapabilities.ANDROID):
"""
Creates a new instance of Selendroid using the WebView app
:Args:
- host - location of where selendroid is running
- port - port that selendroid is running on
- desired_capabilities: Dictionary object with capabilities
"""
RemoteWebDriver.__init__(self,
command_executor="http://%s:%d/wd/hub" % (host, port),
desired_capabilities=desired_capabilities)
python类ANDROID的实例源码
def __init__(self, host="localhost", port=4444, desired_capabilities=DesiredCapabilities.ANDROID):
"""
Creates a new instance of Selendroid using the WebView app
:Args:
- host - location of where selendroid is running
- port - port that selendroid is running on
- desired_capabilities: Dictionary object with capabilities
"""
RemoteWebDriver.__init__(self,
command_executor="http://%s:%d/wd/hub" % (host, port),
desired_capabilities=desired_capabilities)
def __init__(self, host="localhost", port=4444, desired_capabilities=DesiredCapabilities.ANDROID):
"""
Creates a new instance of Selendroid using the WebView app
:Args:
- host - location of where selendroid is running
- port - port that selendroid is running on
- desired_capabilities: Dictionary object with capabilities
"""
RemoteWebDriver.__init__(
self,
command_executor="http://%s:%d/wd/hub" % (host, port),
desired_capabilities=desired_capabilities)
def __init__(self, host="localhost", port=4444, desired_capabilities=DesiredCapabilities.ANDROID):
"""
Creates a new instance of Selendroid using the WebView app
:Args:
- host - location of where selendroid is running
- port - port that selendroid is running on
- desired_capabilities: Dictionary object with capabilities
"""
RemoteWebDriver.__init__(self,
command_executor="http://%s:%d/wd/hub" % (host, port),
desired_capabilities=desired_capabilities)
def __init__(self, host="localhost", port=4444, desired_capabilities=DesiredCapabilities.ANDROID):
"""
Creates a new instance of Selendroid using the WebView app
:Args:
- host - location of where selendroid is running
- port - port that selendroid is running on
- desired_capabilities: Dictionary object with capabilities
"""
RemoteWebDriver.__init__(
self,
command_executor="http://%s:%d/wd/hub" % (host, port),
desired_capabilities=desired_capabilities)
def __init__(self, host="localhost", port=4444, desired_capabilities=DesiredCapabilities.ANDROID):
"""
Creates a new instance of Selendroid using the WebView app
:Args:
- host - location of where selendroid is running
- port - port that selendroid is running on
- desired_capabilities: Dictionary object with capabilities
"""
RemoteWebDriver.__init__(self,
command_executor="http://%s:%d/wd/hub" % (host, port),
desired_capabilities=desired_capabilities)