package Ġio . github . wy kop mob il ny . tests . pages Ċ Ċ import Ġandroidx . annotation . Id Res Ċ import Ġandroidx . drawer layout . widget . Drawer Layout Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . contrib . Drawer Actions . close Ċ import Ġandroidx . test . espress o . contrib . Drawer Actions . open Ċ import Ġandroidx . test . espress o . contrib . Navigation View Actions . navigate To Ċ import Ġandroidx . test . espress o . matcher . View Matchers . isAssignableFrom Ċ import Ġcom . google . android . material . navigation . Navigation View Ċ import Ġio . github . wy kop mob il ny . tests . base . Page Ċ import Ġio . github . wy kop mob il ny . utils . wait Visible Ċ Ċ object ĠMain Page Ġ: ĠPage Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġdrawer Ġ= Ġis AssignableFrom ( Drawer Layout :: class . java ) ĊĊĠĠĠ Ġprivate Ġval Ġnavigation View Ġ= Ġis AssignableFrom ( Navigation View :: class . java ) ĊĊĠĠĠ Ġfun Ġtap Drawer Option (@ Id Res Ġoption : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( navigation View ). wait Visible (). perform ( navigate To ( option )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġopen Drawer () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( drawer ). wait Visible (). perform ( open ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclose Drawer () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( drawer ). wait Visible (). perform ( close ()) ĊĠĠĠ Ġ} Ċ } Ċ