当前位置:网站首页>“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/
边栏推荐
- Smartbi gives you a piece to play with Boston matrix
- leetcode 1143. Longest Commom Subsequence 最长公共子序列(中等)
- Openpyxl module
- 泰国安全又划算的支付方式
- 1+1<2 ?! HESIC论文解读
- Outside the code: writing is the best way to force growth
- Unityeditor Editor Extension - table function
- Cve-2022-30190 follina office rce analysis [attached with customized word template POC]
- From bitmap to bloom filter, C # implementation
- 手机上炒股开户可靠吗 网上开户炒股安全吗
猜你喜欢

Unity4.6 Download

Let agile return to its original source -- Some Thoughts on reading the way of agile neatness

邮箱附件钓鱼常用技法

用户在hander()goroutine,添加定时器功能,超时则强踢出

Target tracking shooting? Target occlusion shooting? With 1.9 billion installed petal apps, what unique features attract users?

go语言中的私聊功能处理

Learun low code OA system construction platform

12色彩环三原色

超硬核!华为智慧屏上的家庭相册竟可以自动精准分类?

我的c语言进阶学习笔记 ----- 关键字
随机推荐
[微服务]Eureka
Unity4.6 Download
通过两个stack来实现Queue
Leetcode 718. Longest repeating subarray (violence enumeration, to be solved)
Introduction to software engineering -- Chapter 4 -- formal description technology
Nacos安装指南
Cve-2022-30190 follina office rce analysis [attached with customized word template POC]
How to use Pinia (I) introduce Pinia into the project
[微服務]認識微服務
On cap theorem in distributed system development technology
CVE-2022-30190 Follina Office RCE分析【附自定义word模板POC】
go语言的服务发现、存储引擎、静态网站
Can I open an account for stock trading on my mobile phone? Is it safe to open an account for stock trading on the Internet
golang语言的开发学习路线
想买股票请问在券商公司的哪里开户佣金低更安全
不会写免杀也能轻松过defender上线CS
Leetcode 718. 最长重复子数组(暴力枚举,待解决)
Is it reliable to open an account on a stock trading mobile phone? Is it safe to open an account online and speculate in stocks
复杂数据没头绪?
股票怎样在手机上开户安全吗 网上开户炒股安全吗