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
}
-
Answer # 1
Related articles
- i want to execute processing after reloading tableview in swift
- swift - i want to save a tableviewcell after deleting it with a swipe
- swift - i want to operate on a cell after the scrolltorow animation of uitableview is finished and the cell is displayed on the
- swift - i want to reflect on label after selecting a value with picker
- ios - after deleting elements from the swift array, i want to return to the original array
- [swift] i want to change the variable type after inheritance
- xcode - swift: after trying the share function with line, i can no longer build
- swift - about scroll view after setting autolayout
- in swift, i want to perform specific processing after closing the displayed view
- Java releases file occupancy, that is, after Dom4j operation, it realizes xml off flow
- swift - i want to keep cell selection state even after reloading tableviewcell
- Compatible operation methods for old projects after Android Studio 313 is upgraded to 361
- Analysis of operation examples after Laravel51 framework association model
Trends
Recording with UI recording will generate code, so at first you will find out if you look at what code is generated.
Would you like to refer to this?
https://qiita.com/IsaoTakahashi/items/f9c3ef367d7e0f60e2d6