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

Selenide - Create new driver for each Junit 5 Test

$
0
0

I'm using Selenide with Junit 5

Selenide 5.1.0

Junit 5.3.2

When I run tests with junit, same driver/browser is used for all tests. I want to create new WebDriver instance for each test.

I can call driver.quit() in AfterEach method. But I wanted to know is there any inbuilt method to handle the same in Selenide. So that I won't have to worry about driver initialization. It should open a new driver for each Test and close after execution


Viewing all articles
Browse latest Browse all 97807

Trending Articles



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