package Ġpages Ċ Ċ import Ġio . app ium . java _ client . App ium Driver Ċ import Ġio . app ium . java _ client . Mobile Element Ċ import Ġio . app ium . java _ client . page factory . App ium Field Decorator Ċ import Ġorg . openqa . selenium . support . Find By Ċ import Ġorg . openqa . selenium . support . Page Factory Ċ Ċ class ĠContact Search Page Android ( driver : ĠApp ium Driver <* >) Ġ: ĠContact Search Page Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠPage Factory . init Elements ( App ium Field Decorator ( driver ), Ġthis ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Find By ( id Ġ= Ġ" main _ search ") ĊĠĠĠ Ġoverride Ġlateinit Ġvar Ġsearch Field : ĠMobile Element ĊĊĠĠĠ Ġ@ Find By ( id Ġ= Ġ" name ") ĊĠĠĠ Ġoverride Ġlateinit Ġvar Ġfirst SearchResult Name : ĠMobile Element ĊĊĠĠĠ Ġ@ Find By ( id Ġ= Ġ" fab ") ĊĠĠĠ Ġoverride Ġlateinit Ġvar Ġadd Button : ĠMobile Element ĊĊĠĠĠ Ġoverride Ġfun Ġsearch ( name : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsearch Field . send Keys ( name ) ĊĠĠĠ Ġ} Ċ }