private < T extends SeleniumAction > T action ( T delegate ) { if ( seleniumBrowser != null ) { delegate . setBrowser ( seleniumBrowser ) ; } action . setDelegate ( delegate ) ; return delegate ; }
Prepare selenium action .