Contraint Failed Exception

时间:2017-08-29 08:38:32

标签: ios swift earlgrey

我的Earlgrey测试在iPhone 6s和模拟器上工作正常,但是当我在iPhone 6模拟器上运行相同的测试时,它会给出constraintFailedException

这是我的代码:

EarlGrey.select(elementWithMatcher: grey_accessibilityID("passwordTextField"))
    .atIndex(1).perform(grey_typeText(Validation.default.password))

这是例外

  

异常详细信息:[{"说明" :"由于约束失败而无法执行操作。","错误域" :" com.google.earlgrey.ElementInteractionErrorDomain","错误代码" :" 1","文件名" :" GREYBaseAction.m","功能名称" :" - [GREYBaseAction satisfiesConstraintsForElement:error:]"," Line" :" 66"," TestCase Class" :" GalaxyTests.UITests"," TestCase Method" :" testExample" }]

0 个答案:

没有答案