当前位置:网站首页>“message“:“Bad capabilities. Specify either app or appTopLevelWindow to create a session“
“message“:“Bad capabilities. Specify either app or appTopLevelWindow to create a session“
2022-06-26 23:31:00 【EXEC_CHRONICLE_KEY】
python使用appium时出现错误
{“status”:100,“value”:{“error”:“invalid argument”,“message”:“Bad capabilities. Specify either app or appTopLevelWindow to create a session”}}
下方是生成的json内容,不能匹配winAppDriver的规则
{
"capabilities":{
"firstMatch":[{
"platformName":"Windows","appium:app":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App","appium:deviceName":"WindowsPC","ms:experimental-webdriver":true}]}}
正确的内容应该是没有前缀"appium:",如下
{
"capabilities": {
"firstMatch": [{
"platformName": "Windows", "appium:deviceName": "WindowsPC", "appium:app": "C:\\Windows\\System32\\notepad.exe"}]}, "desiredCapabilities": {
"platformName": "Windows", "deviceName": "WindowsPC", "app": "C:\\Windows\\System32\\notepad.exe"}}
查询appium的文档说明,是因为2.0版本使用了与1.0版本不同的json生成公式,
可以使用1.0版本的appium-python-client 来替代
https://pypi.tuna.tsinghua.edu.cn/simple/appium-python-client/
边栏推荐
- Amway! How to provide high-quality issue? That's what Xueba wrote!
- CVE-2022-30190 Follina Office RCE分析【附自定义word模板POC】
- 【强基计划】数学与物理竞赛中的微积分部分视频
- 300题 第三讲 向量组
- 颜色搭配和相关问题
- Common techniques of email attachment phishing
- [微服務]認識微服務
- 复杂数据没头绪?
- 能在手机上开户炒股吗 网上开户炒股安全吗
- Redcap is ready to come out. It is indispensable to build a "meta universe"
猜你喜欢

12 color ring three primary colors

12色彩环三原色

go语言的服务发现、存储引擎、静态网站

Common techniques of email attachment phishing

Alibaba cloud server purchase, basic configuration, (xshell) remote connection and environment building

CVPR2022-不对称分辨率图像的立体匹配

阿里云服务器的购买、基本配置、(xshell)远程连接、搭建环境

My advanced learning notes of C language ----- keywords
![[microservices] understanding microservices](/img/62/e826e692e7fd6e6e8dab2baa4dd170.png)
[microservices] understanding microservices

Unity4.6 Download
随机推荐
Why does EDR need defense in depth to combat ransomware?
Microservices and container choreography in go
1+1<2 ?! HESIC论文解读
[microservices] understanding microservices
能在手机上开户炒股吗 网上开户炒股安全吗
6.24 learning content
Cve-2022-30190 follina office rce analysis [attached with customized word template POC]
Smartbi gives you a piece to play with Boston matrix
On cap theorem in distributed system development technology
Is it reliable to open an account for stock trading on the mobile phone? Is it safe to open an account for stock trading on the Internet
Nacos installation guide
What are the preferential activities for stock account opening? Is it safe to open a mobile account?
【强基计划】数学与物理竞赛中的微积分部分视频
My advanced learning notes of C language ----- keywords
客户端实现client.go客户端类型定义连接
Understanding of "the eigenvectors corresponding to different eigenvalues cannot be orthogonalized"
手机上炒股开户可靠吗 网上开户炒股安全吗
Your connection is not private
Service discovery, storage engine and static website of go language
一篇文章带你学会容器逃逸