hashar added a comment. |
From http://stackoverflow.com/questions/12787032/handling-exceptions-on-cucumber-scenarios?rq=1
Around('@handle_alert_boxes') do |scenario, block| do begin block.call rescue Selenium::WebDriver::Error::UnhandledAlertError puts "It's OK!" end end
So maybe just rescue the few timeout exceptions and block.call again? :}
TASK DETAIL
EMAIL PREFERENCES
To: zeljkofilipin, hashar
Cc: gerritbot, hashar, zeljkofilipin, thiemowmde, Aklapper, Tobi_WMDE_SW, Th3d3v1ls, Ramalepe, Liugev6, Lewizho99, Maathavan, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331, greg
Cc: gerritbot, hashar, zeljkofilipin, thiemowmde, Aklapper, Tobi_WMDE_SW, Th3d3v1ls, Ramalepe, Liugev6, Lewizho99, Maathavan, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331, greg
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs