agoda-com / Kakao

This repo is no longer supported. Please visit a https://github.com/KakaoCup/Kakao
Apache License 2.0
1.11k stars 102 forks source link

Tap spinner by text #207

Closed hram closed 4 years ago

hram commented 4 years ago

Hi Can you please help me. How can I do tap on spinner item with specific text. Spiner has emptyChildAt function. But in my case I need something like that emptyChildWithText()

Unlimity commented 4 years ago

Hey there! You can use Kakao's default list interaction API:

mySpinner {
  emptyChildWith {
    isInstanceOf(String::class.java)
    equals("MyText")
  } perform { click() }
}

Hope that helps.

Unlimity commented 4 years ago

Closing this issue due to no response