tempSelector

tempSelector関数を使用してセレクターをオンデマンドで登録することができます。

サンプルコード

サンプルの入手

TempSelector1.kt

(src/test/kotlin/tutorial/basic/TempSelector1.kt)

    @Test
    @Order(10)
    fun tempSelector1() {

        tempSelector("[最初のアイテム]", "ネットワークとインターネット")

        scenario {
            case(1) {
                condition {
                    it.macro("[Android設定トップ画面]")
                }.action {
                    it.tap("[最初のアイテム]")
                }.expectation {
                    it.screenIs("[ネットワークとインターネット画面]")
                }
            }
        }
    }

Link