XCODE8 xcuitest代码生成编译错误
XCODE 8 xcuitest code generation compilation error
我已经下载了xcode8,并尝试在xcuitest中记录一个测试
但是 xcode 生成的代码给出了编译错误
生成的代码
window.tables.children(matching: .tableRow).element(boundBy: 0).children(matching: .cell).element(boundBy: 5).click()
错误
但它给出了编译错误,例如 Value of type
'XCUIElementQuery' 没有成员“包含”
'XCUIElementQuery' 没有成员‘children’
'XCUIElementQuery'没有成员‘匹配’
'XCUIElementQuery'没有成员‘element’
另外.other应该改为.Other
.cell 应更改为 .Cell 以修复错误
我在安装时选择了swift 2.3 xcode 8
感谢任何帮助
看起来代码生成器已迁移到新的语法来调用子项,但代码解释器没有。将 .children(matching: .cell) 替换为 children Matching Type(.Cell)
我已经下载了xcode8,并尝试在xcuitest中记录一个测试
但是 xcode 生成的代码给出了编译错误
生成的代码
window.tables.children(matching: .tableRow).element(boundBy: 0).children(matching: .cell).element(boundBy: 5).click()
错误 但它给出了编译错误,例如 Value of type 'XCUIElementQuery' 没有成员“包含” 'XCUIElementQuery' 没有成员‘children’ 'XCUIElementQuery'没有成员‘匹配’ 'XCUIElementQuery'没有成员‘element’
另外.other应该改为.Other .cell 应更改为 .Cell 以修复错误
我在安装时选择了swift 2.3 xcode 8
感谢任何帮助
看起来代码生成器已迁移到新的语法来调用子项,但代码解释器没有。将 .children(matching: .cell) 替换为 children Matching Type(.Cell)