Improved test helper.
This commit is contained in:
parent
eb75b79c69
commit
439b6cea8a
1 changed files with 3 additions and 1 deletions
|
@ -1242,7 +1242,9 @@ wait untill text in selector disabppears
|
||||||
|
|
||||||
# click on click catcher
|
# click on click catcher
|
||||||
if params[:do_not_submit]
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue