Skip to content

Commit

Permalink
#142 - Improve SelenideAddons.wrapAssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Pfotenhauer committed Oct 7, 2020
1 parent f73e167 commit 33efb02
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 33efb02

Please sign in to comment.