public boolean clickWithExtJS ( ) { String id = getAttributeId ( ) ; if ( hasId ( id ) ) { String script = "return (function(){var b = Ext.getCmp('" + id + "'); if(b) {b.onClick({preventDefault:function(){},button:0}); return true;} return false;})()" ; Object object = WebLocatorUtils . doExecuteScript ( script ) ; LOGGER . info ( "clickWithExtJS on {}; result: {}" , toString ( ) , object ) ; return ( Boolean ) object ; } LOGGER . debug ( "id is: " + id ) ; return false ; }
TO Be used in extreme cases when simple . click is not working