当前位置:网站首页>“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-27 00:07:00 【EXEC_ CHRONICLE_ KEY】
python Use appium Time error
{“status”:100,“value”:{“error”:“invalid argument”,“message”:“Bad capabilities. Specify either app or appTopLevelWindow to create a session”}}
Below is the generated json Content , Can't match winAppDriver The rules of
{
"capabilities":{
"firstMatch":[{
"platformName":"Windows","appium:app":"Microsoft.WindowsCalculator_8wekyb3d8bbwe!App","appium:deviceName":"WindowsPC","ms:experimental-webdriver":true}]}}
The correct content should be no prefix "appium:", as follows
{
"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"}}
Inquire about appium Documentation of , Because 2.0 Version uses the 1.0 Different versions of json Generate formula ,
have access to 1.0 Version of appium-python-client To replace
https://pypi.tuna.tsinghua.edu.cn/simple/appium-python-client/
边栏推荐
- Is it safe to buy pension insurance online? Is there a policy?
- How to open an account on the mobile phone? Is it safe to open an account online and speculate in stocks
- Super hard core! Can the family photo album on Huawei's smart screen be classified automatically and accurately?
- kubernetes可视化界面dashboard
- [vscode] setting sync, a plug-in for synchronizing extensions and settings
- 消息队列简介
- 手机上可以开户炒股吗 网上开户炒股安全吗
- [微服务]认识微服务
- test
- Understanding of "the eigenvectors corresponding to different eigenvalues cannot be orthogonalized"
猜你喜欢
golang语言的开发学习路线
Kubernetes visual interface dashboard
安利!如何提优质的ISSUE?学霸是这样写的!
Development and learning route of golang language
国内外最好的12款项目管理系统优劣势分析
PHP code audit series (I) basis: methods, ideas and processes
邮箱附件钓鱼常用技法
Safe and cost-effective payment in Thailand
Understanding of "the eigenvectors corresponding to different eigenvalues cannot be orthogonalized"
Solid and ambient colors
随机推荐
[微服务]Nacos
低佣金免费开户渠道安全吗?
Analysis on the advantages and disadvantages of the best 12 project management systems at home and abroad
Simple test lightweight expression calculator fly
用户在hander()goroutine,添加定时器功能,超时则强踢出
[微服务]Eureka
Super hard core! Can the family photo album on Huawei's smart screen be classified automatically and accurately?
What are the preferential activities for stock account opening? Is it safe to open a mobile account?
Where is it safer to open an account to buy funds
手机上可以开户炒股吗 网上开户炒股安全吗
go中的微服务和容器编排
12 color ring three primary colors
全网最全的混合精度训练原理
Pinpoint attackers with burp
通过两个stack来实现Queue
Lorsque le transformateur rencontre l'équation différentielle partielle
Kubernetes visual interface dashboard
当Transformer遇见偏微分方程求解
大赛报名 | AI+科学计算重点赛事之一——中国开源科学软件创意大赛,角逐十万奖金!
Installation of xshell and xftp