diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 7d55b395d..2efdd279c 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -1242,7 +1242,9 @@ wait untill text in selector disabppears # click on click catcher if params[:do_not_submit] - click( browser: instance, css: '.clickCatcher') + if instance.find_elements( { css: '.clickCatcher' } )[0] + click( browser: instance, css: '.clickCatcher') + end end end