我们从Python开源项目中,提取了以下6个代码示例,用于说明如何使用selenium.webdriver.common.desired_capabilities.DesiredCapabilities.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)