How to stop automatically closing browser when writing protractor test cases

后端 未结 9 1748
面向向阳花
面向向阳花 2021-02-07 12:43

I am new to writing test cases using protractor for non angular application. I wrote a sample test case.Here the browser closes automatically after running test case.How can I p

9条回答
  •  滥情空心
    2021-02-07 13:11

    Protractor will close browsers, that it created, so an approach that I am using is to start the browser via the webdriver-reuse-session npm package.

    DISCLAIMER: I am the author of this package

    It is a new package, so let me know if it solves your problem. I am using it with great success.

提交回复
热议问题