Below is the dependencies version i am using :
WebDriverManager-versioned 3.6.1
(Gecko driver versioned 0.24.0)
Firefox versioned 68.0.1 64 bit Windows 10
Selenium version 3.141.59
I have a maven -selenium project with 10+ test classes in testNG.
When i execute these classes on Chrome browsers ,each test class gets executed successfully .
Same test classes when i execute on Firefox using the (WebDriverManager-Gecko driver) the test classes execute for some time say 5-10 seconds and then abruptly closes and opens next test class for execution ,even this test class execute for some time and then closes . Same thing happens with each test class.
I have tried to manually use geckodriver.exe and set up system properties, still it doesnt fix the error
Below is the code i have used for WebDriverManager
if (browser.equals("chrome")) {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
}
if (browser.equals("firefox")) {
WebDriverManager.firefoxdriver().setup();
driver = new FirefoxDriver();
}