| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 65 人关注过本帖
标题:appium自动化运行报错 AttributeError: 'NoneType' object has no attribu ...
只看楼主 加入收藏
ya3331445162
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2025-2-7
收藏
 问题点数:0 回复次数:0 
appium自动化运行报错 AttributeError: 'NoneType' object has no attribute 'to_capabiliti
程序代码:

from appium import webdriver

# 配置Appium参数
capabilities = {
    'platformName': 'Android',
    'platformVersion': '7.1.2',
    'deviceName': '127.0.0.1:62001',
    'appPackage': 'com.android.browser',
    'appActivity': 'BrowserActivity',
    'automationName': 'UiAutomator2'
}

# 启动Appium服务
driver = webdriver.Remote('http://localhost:4723/wd/hub', capabilities)

# 等待应用加载
driver.implicitly_wait(10)


# 结束测试
driver.quit()

搜索更多相关主题的帖子: 自动化 运行 attribute object 报错 
2025-02-07 16:06
快速回复:appium自动化运行报错 AttributeError: 'NoneType' object has no at ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.087105 second(s), 9 queries.
Copyright©2004-2025, BC-CN.NET, All Rights Reserved