参数设置
desired_capabilities = { 'platformName': 'Android', # 操作系统 'deviceName': '2a254a02', # 设备 ID 'platformVersion': '9.1.0', # 设备版本号,在手机设置中查看 'appPackage': 'com.tencent.mm', # app 包名 'appActivity': 'com.tencent.mm.ui.LauncherUI', # app 启动时主 Activity 'noReset': True # 是否保留 session 信息 避免重新登录 }
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_capabilities)
想问一下这些参数应该如何获取,能来一个示例吗??
你好,我不知道你在哪里看到的,是要做什么呢
发自我的iPhone
------------------ 原始邮件 ------------------ 发件人: xudh1991 <[email protected]> 发送时间: 2021年1月30日 15:01 收件人: JustDoPython/python-examples <[email protected]> 抄送: Subscribed <[email protected]> 主题: 回复:[JustDoPython/python-examples] 参数设置 (#6)
desired_capabilities = { 'platformName': 'Android', # 操作系统 'deviceName': '2a254a02', # 设备 ID 'platformVersion': '9.1.0', # 设备版本号,在手机设置中查看 'appPackage': 'com.tencent.mm', # app 包名 'appActivity': 'com.tencent.mm.ui.LauncherUI', # app 启动时主 Activity 'noReset': True # 是否保留 session 信息 避免重新登录 }
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_capabilities)
想问一下这些参数应该如何获取,能来一个示例吗??
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.