@ file : Jvm Name (" Check ers ") Ċ package Ġcom . moon pi . swift notes . util Ċ Ċ import Ġandroid . support . test . espress o . Esp ress o . on View Ċ import Ġandroid . support . test . espress o . action . View Actions . click Ċ import Ġandroid . support . test . espress o . action . View Actions . type Text Ċ import Ġandroid . support . test . espress o . assertion . View Assertions . matches Ċ import Ġandroid . support . test . espress o . matcher . View Matchers .* Ċ import Ġandroid . view . View Ċ import Ġorg . hamcrest . Matchers . all Of Ċ Ċ fun Ġcheck Text With Text ( element ID : ĠInt , Ġtext Ġ: ĠString ) Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( all Of < View >( with Text ( element ID ), Ġis Displayed ())) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( text ))) Ċ Ċ fun Ġcheck Hint With Id ( element ID : ĠInt , Ġtext : ĠString ) Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( all Of < View >( with Id ( element ID ), Ġis Displayed ())) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Hint ( text ))) Ċ Ċ fun Ġcheck Enabled ByID ( element ID : ĠInt ) Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( element ID )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( isEnabled ())) Ċ Ċ fun Ġcheck Enabled With Text ( element ID : ĠInt ) Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( element ID )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( isEnabled ())) Ċ Ċ fun Ġcheck Displayed With Text ( element ID : ĠInt ) Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( element ID )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊ Ċ fun Ġclick With Id ( element ID : ĠInt ) Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( all Of < View >( with Id ( element ID ), Ġis Enabled ())) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( click ()) ĊĊ Ċ fun Ġtype String ( element ID : ĠInt , Ġtext : ĠString ) Ġ= ĊĠĠĠĠĠĠĠ Ġon View ( all Of < View >( with Id ( element ID ), Ġis Displayed ())) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( click ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( type Text ( text ))