-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Hi @kowalcj0 ,
Hope you're great and thanks for such a nice project.
Although I've followed your framework in the same way especially with DriverManager, LocalDriverFactory classes and stepDefs, 2 browser instances are getting opened when the feature file is executed. As per my knowledge on your project, the rootcause could be calling DriverManager.getDriver() method one time in BeforeAfterHooks and second time in Feature1And2Stepdefs which 2 driver instances are getting called and opened.
If my assumption is correct then how can I carry forward only one driver instance/browser throughout the framework by setting it only once? Can I assume when the driver gets set then can call same driver instance/browser using DriverManager.getDriver() method anywhere in the frameowrk?
Please can help me in resolving this as I got stuck at this point? Many thanks in advance.