klassijs/klassi-js

Browser window opening 2x when running a test

brazabr opened this issue · 2 comments

I cloned your library for evaluation and found this problem:

When I start the test node index.js -d -t @search the browser window opens twice and the selenium just uses the second one.

I found out this is due to having 2 hooks (one Before and another BeforeAll) calling getDriverInstance() and the Before is not checking if it is already instantiated.

@collabratech After removing the Before hook, did you run the @search again using more that one search variable

This has now been fixed and code updated