1

I have different folderstest suites inside test folder . These folders contains so many .js test files. Each test file invokes a separate browser.

Is their a way I can use single browser for all test files inside suite?

I have already gone through these links but couldn't find out a working solution.

  1. http://nightwatchjs.org/api/session.html

  2. http://nightwatchjs.org/api/sessions.html

  3. https://www.w3.org/TR/webdriver/#dfn-current-session

Some one provided solution at this link Reuse the browser session for Selenium WebDriver for Nightwatch.js tests but I am more intersting in storing running browser session in string and for next test file put a check to verify if there is already one existing session or not, if yes pass its value to next one and avoid creating/invoking new browser session.

Community
  • 1
  • 1
paul
  • 4,333
  • 16
  • 71
  • 144

0 Answers0