From 33efb02fc761f369811ab44506b5e11e322f4a58 Mon Sep 17 00:00:00 2001 From: Marcel Pfotenhauer Date: Wed, 7 Oct 2020 13:39:58 +0200 Subject: [PATCH] #142 - Improve SelenideAddons.wrapAssertionError --- src/main/java/com/xceptance/neodymium/util/SelenideAddons.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/xceptance/neodymium/util/SelenideAddons.java b/src/main/java/com/xceptance/neodymium/util/SelenideAddons.java index bf5793649..d956b977f 100644 --- a/src/main/java/com/xceptance/neodymium/util/SelenideAddons.java +++ b/src/main/java/com/xceptance/neodymium/util/SelenideAddons.java @@ -26,7 +26,6 @@ import com.codeborne.selenide.ex.UIAssertionError; import com.codeborne.selenide.impl.Html; import com.codeborne.selenide.impl.WebElementsCollectionWrapper; -import com.codeborne.selenide.logevents.SelenideLog; import com.codeborne.selenide.logevents.SelenideLogger; /** @@ -384,7 +383,7 @@ public static void wrapAssertionError(final Runnable runnable) wrapper.setStackTrace(e.getStackTrace()); e = wrapper; } - SelenideLogger.commitStep(new SelenideLog("Assertion error", message), e); + SelenideLogger.commitStep(SelenideLogger.beginStep("Assertion error", message), e); if (!driver.config().assertionMode().equals(AssertionMode.SOFT)) { throw UIAssertionError.wrap(driver, e, 0);