失败:TypeError:异常必须是oldstyle类或派生自BaseException,而不是unicode Robotfram

2024-05-16 11:48:00 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图运行Appium RobotframeWork时,我遇到了上述错误

我的示例代码:

*** Settings ***
Library           AppiumLibrary

     Test Cases
        AB
        Open Application 
        ...    http://localhost:4723/wd/hub
        ...    platformName=Android
        ...    platformVersion=8.0.0
        ...    deviceName=emulator-5554
        ...    appPackage=com.grabqpons.android
        ...    appActivity=com.grabqpons.android.MainActivity

        Sleep    2s
        Click Button    xpath=//*[startswith(@id,'slide-skip-btn')]
        Sleep    2s

回应:

^{pr2}$

Tags: 代码testcom示例absettings错误library