Error compiling XCODE 8 xcuitest code

I downloaded xcode 8 and tried to write a test in xcuitest

but the generated code using xcode gives a compilation error

Generated code

window.tables.children(matching: .tableRow).element(boundBy: 0).children(matching: .cell).element(boundBy: 5).click()

An error but it gives a compilation error, such as a value of type "XCUIElementQuery" does not have a member containing "XCUIElementQuery" does not have child members "XCUIElementQuery" does not match any member "XCUIElementQuery" has no member element '

also. the other must be changed to. Other .cells should be replaced with .Cell to fix the error.

i chose swift 2.3 when installing xcode 8

Any help appreciated

+4
source share
1 answer

, sytnax , . .children(:.cell) childrenMatchingType (.Cell)

+2

Source: https://habr.com/ru/post/1655392/


All Articles