Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

参数设置 #6

Open
xudh1991 opened this issue Jan 30, 2021 · 1 comment
Open

参数设置 #6

xudh1991 opened this issue Jan 30, 2021 · 1 comment

Comments

@xudh1991
Copy link

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)

想问一下这些参数应该如何获取,能来一个示例吗??

@JiangtaoQu
Copy link

JiangtaoQu commented Jan 30, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants