Ardesco/Selenium-Maven-Template

Problem with running more than one test

dmikof opened this issue ยท 4 comments

Hello Mark,
Thanks a lot for this template (and for "Mastering Selenium" book ๐Ÿ‘ ). I keep getting "org.openqa.selenium.remote.UnreachableBrowserException" or "org.openqa.selenium.remote.SessionNotFoundException" whenever I try to run more than one test with "-Dthreads=2". Have you ran into such an issue?
P.S. I was following your book code up to page objects chapter and came here to check possible difference in code (here it may be updated). My code seem to be the same when it matters (I left Chrome, FireFox and Safari on OSX in DriverType class)

It was caused by my error in code :)

Glad you sorted it out, would be useful to know what you did so that others who make the same mistake know how to fix it.

Had "@after method" annotation instead of "@after suite" one in closeDriverObjects() method

Ah, useful to know :)