protected void clickOn ( PageElement toClick , Object ... args ) throws TechnicalException , FailureException { displayMessageAtTheBeginningOfMethod ( "clickOn: %s in %s" , toClick . toString ( ) , toClick . getPage ( ) . getApplication ( ) ) ; try { Context . waitUntil ( ExpectedConditions . elementToBeClickable ( Utilities . getLocator ( toClick , args ) ) ) . click ( ) ; } catch ( final Exception e ) { new Result . Failure <> ( e . getMessage ( ) , Messages . format ( Messages . getMessage ( Messages . FAIL_MESSAGE_UNABLE_TO_OPEN_ON_CLICK ) , toClick , toClick . getPage ( ) . getApplication ( ) ) , true , toClick . getPage ( ) . getCallBack ( ) ) ; } }
Click on html element .