From 5da733f47293e56f6c0fb8f606f2e30dabf0dd28 Mon Sep 17 00:00:00 2001 From: Nico Schedel Date: Thu, 11 Jul 2019 09:49:37 +0200 Subject: [PATCH] TT#56376 selenium: remove checks for labels in crash handler Common.pm: - remove label checks when script crashes, since those are handled by the alert tests themselves now Change-Id: I70a9618c78ae9bc51242cc3cdc30c278923d0711 --- t/lib/Selenium/Collection/Common.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/t/lib/Selenium/Collection/Common.pm b/t/lib/Selenium/Collection/Common.pm index 6af6ad6263..54f7767269 100644 --- a/t/lib/Selenium/Collection/Common.pm +++ b/t/lib/Selenium/Collection/Common.pm @@ -368,14 +368,9 @@ sub crash_handler { my $url = $self->driver->get_current_url(); my $title = $self->driver->get_title(); my $realtime = localtime(); - my $label = "Could not find a label"; - eval { - $label = $self->driver->find_element('//*[@id="content"]//div[@class="alert alert-error"]')->get_text(); - }; diag("Server: $ENV{CATALYST_SERVER}"); diag("Url: $url"); diag("Tab Title: $title"); - diag("Label: $label"); diag("Perl localtime(): $realtime"); if($jenkins) { $self->driver->capture_screenshot($filename);