Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98893

How to use Configuration.assertionMode = AssertionMode.SOFT; with mixed framework (selenium + selenide)

$
0
0

I'm working with old framefork which uses selenium, but now i'm trying use Selenide. BaseTest has listeners:

@Listeners({TestMethodListener.class, TestListener.class, TimeoutTransformer.class, SoftAsserts.class})

And in @BeforeSuite Configuration.assertionMode = AssertionMode.SOFT

I always getting

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

To use Selenide methods i just setting current driver to WebDriverRunner WebDriverRunner.setWebDriver(driver)

Does anyone had similar problems?


Viewing all articles
Browse latest Browse all 98893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>