背景 使用Appium Server 1.15.1版本 执行了以下脚本 test = driver.find_element_by_name("自动化测试") print(test.text) 报了以下错误 圈重点 selenium.common.exceptions.InvalidSelectorException: Message: Locator Strategy 'name' is not supported for this session 简译: by_name 这种定位…
appium1.5后不支持find_element_by_name元素定位方法,会抛如下错误 org.openqa.selenium.InvalidSelectorException: Locator Strategy 'name' is not supported for this session 解决方法如下: 找到appium\node_modules\appium-android-driver\build\lib\driver.js 文件,修改以下内容,增加'name' mac在(/us…
AS报错:lambda expressions are not supported at this language level 解决方法 打开打开 File --> Project Stucture 选择Modules(汉化版对应为:文件-->项目结构)如图所示 选择对应的项目,比如图片当中的app项目,在默认情况下Source Compatibility和Target Compatibility都为空.然后按如下步骤修改: 1) Source Compatibility选择1.8…