package Ġorg . od k . collect . android . support . pages Ċ Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . action . View Actions . click Ċ import Ġandroidx . test . espress o . assertion . View Assertions . matches Ċ import Ġandroidx . test . espress o . matcher . Root Matchers Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Displayed Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Text Ċ import Ġorg . od k . collect . android . R Ċ Ċ class ĠForms Download Result Page Ġ: ĠPage < Forms Download Result Page >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġassert On Page (): ĠForms Download Result Page Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . ok )). in Root ( Root Matchers . is Dialog ()). check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġassert Message ( message : ĠString ): ĠForms Download Result Page Ġ{ ĊĠĠĠĠĠĠĠ Ġassert Text ( message ) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġshow Details (): ĠForms Download Error Page Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( get Translated String ( R . string . show _ details ))). perform ( click ()) ĊĠĠĠĠĠĠĠ Ġreturn ĠForms Download Error Page (). assert On Page () ĊĠĠĠ Ġ} Ċ } Ċ