From d8069b8e61c61c96fe8f136b3ad31ca104425a21 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 18 Nov 2015 00:53:19 +0100 Subject: [PATCH] Another chrome selenium fix. --- test/browser_test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 36efad891..7ae563836 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -1468,6 +1468,10 @@ wait untill text in selector disabppears ) instance.find_elements( { css: ".content.active .sidebar a[href=\"#{params[:link]}\"]" } )[0].click sleep 1 + execute( + browser: instance, + js: '$(".content.active .sidebar").css("display", "none")', + ) instance.find_elements( { partial_link_text: params[:number] } )[0].click sleep 1 number = instance.find_elements( { css: '.active .ticketZoom-header .ticket-number' } )[0].text