Create a new `execute_script_for` helper method that would make sure that an element is found before executing some JS
The following discussion from gitlab-ce!14898 should be addressed:
-
@nick.thomas started a discussion: (+1 comment) I wonder if we could introduce an
execute_script_for(element, script)
helper method and introduce a cop forexecute_script
.
Edited by Rémy Coutable