Improved test helper.

This commit is contained in:
Martin Edenhofer 2015-10-09 00:08:54 +02:00
parent eb75b79c69
commit 439b6cea8a

View file

@ -1242,9 +1242,11 @@ wait untill text in selector disabppears
# click on click catcher # click on click catcher
if params[:do_not_submit] if params[:do_not_submit]
if instance.find_elements( { css: '.clickCatcher' } )[0]
click( browser: instance, css: '.clickCatcher') click( browser: instance, css: '.clickCatcher')
end end
end end
end
if data[:group] if data[:group]
element = instance.find_elements( { css: '.active .sidebar select[name="group_id"]' } )[0] element = instance.find_elements( { css: '.active .sidebar select[name="group_id"]' } )[0]