Home>

I would like to write a description that can be tested with XCUITest. Please tell me how to write it

⒈ Cell tap
⒉ Take out the picker
選 択 Select with picker
⒋ Decide press → OK if the value is not nil

It only takes less than

func testDidSelectRow () {
        // Get running application
        var app = XCUIApplication ()
        // create table cell
        let cell = app.tables.cells.element (boundBy: 0)
        // tap cell
        cell.tap ()
        // put out the picker
        // choose a picker
        // press enter
    }
Trends