【发布时间】:2017-01-30 05:47:59
【问题描述】:
我已经下载了 xcode 8,并尝试在 xcuitest 中记录测试
但是xcode生成的代码会出现编译错误
生成的代码
window.tables.children(matching: .tableRow).element(boundBy: 0).children(matching: .cell).element(boundBy: 5).click()
错误 但它给出了编译错误,如类型值 “XCUIElementQuery”没有成员“包含” “XCUIElementQuery”没有成员“孩子” “XCUIElementQuery”没有成员“匹配” “XCUIElementQuery”没有成员“元素”
.other 也应该改为 .Other .cell 应更改为 .Cell 以修复错误
我在安装 xcode 8 时选择了 swift 2.3
任何帮助表示赞赏
【问题讨论】:
-
有人遇到过同样的问题吗?
-
遇到同样的问题。
标签: xctest