Skip to content

Multiple WebDriver/Browser instances opened #1

@PavanGurram-DevOps

Description

@PavanGurram-DevOps

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions