什么是xpath的附加截图appium-机器人框架

时间:2017-05-25 06:30:41

标签: xpath appium robotframework

我想从附加的屏幕截图中找到登录按钮的xpath。 我试过了

Wait Until Page Contains Element xpath=//android.view.View[@content-desc='Login']

此返回成功找到元素 但它没有点击下面的代码行

Click Element xpath=//android.view.View[@content-desc='Login']

what will be xpath of selected button (Login button)

1 个答案:

答案 0 :(得分:0)

也许您需要检查元素是否可用,例如:

Wait Until Element Is Visible    xpath=//android.view.View[@content-desc='Login']

或者

Wait Until Element Is Enabled    xpath=//android.view.View[@content-desc='Login']

执行上述步骤后,我附上了屏幕截图。please check...