After this code I have error:
gebLocator(wait: true) { $("a#fCoverage") }
browser.js.exec(gebLocator+ ".addEventListener('click', function(){alert('GTM')});")
Error message:
groovy.lang.MissingMethodException: No signature of method: geb.navigator.NonEmptyNavigator.plus() is applicable for argument types: (java.lang.String) values: [.addEventListener('click', function(){alert('GTM')});] Possible solutions: plus(geb.navigator.Navigator), has(java.lang.String), is(java.lang.String), last(), value(), add(java.lang.String)