java.lang.IllegalStateException: Using soft asserts, but without @SoftAsserts annotation

GitHub | asolntsev | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 302#237692353

    GitHub | 7 months ago | asolntsev
    java.lang.IllegalStateException: Using soft asserts, but without @SoftAsserts annotation

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Using soft asserts, but without @SoftAsserts annotation

      at com.codeborne.selenide.logevents.ErrorsCollector.validateAssertionMode()
    2. com.codeborne.selenide
      ElementsCollection.shouldHave
      1. com.codeborne.selenide.logevents.ErrorsCollector.validateAssertionMode(ErrorsCollector.java:45)
      2. com.codeborne.selenide.ElementsCollection.should(ElementsCollection.java:54)
      3. com.codeborne.selenide.ElementsCollection.shouldHave(ElementsCollection.java:50)
      3 frames