How do I run selenium test one after the other on multiple browser How do I run selenium test one after the other on multiple browser selenium selenium

How do I run selenium test one after the other on multiple browser


Replace <suite name="Selenium Tests" parallel="false" thread-count="5">with

<suite name="Selenium Tests" parallel="tests" thread-count="2">

All other things seems to be fine. Refer this for more info.

Edit:

I understood your problem incorrectly. The issue that you are not able to run test sequentially is due to if (driver == null). That mean your test will run well first time as driver is null, but after that due to your driver definition it may not be null and hence will not create another capability. So, if you remove it, the tests should run fine.