public boolean textPresentInSource ( String expectedText ) { try { return driver . getPageSource ( ) . contains ( expectedText ) ; } catch ( Exception e ) { log . info ( e ) ; return false ; } }
Determines if the provides text is present in the current page source .