keep protractor browser session alive

前端 未结 2 1670
我寻月下人不归
我寻月下人不归 2020-12-09 05:41

I have looked everywhere but it looks like I am only person asking this.

How to keep browser session in protractor alive, not to have to login everytime I run a test

2条回答
  •  温柔的废话
    2020-12-09 06:22

    How to keep browser session in protractor alive, not to have to login everytime I run a test. I have put login logics in onPrepare to avoid logging for every test function

    The best choice is to start the Chrome browser session your self, and then provide the session id to protractor.

    There are multiple ways of doing this

    1. Using a script to start the browser - e.g. webdriver-reuse-session that I have created, and I will expand it for better support for this problem.
    2. Use the Selenium Standalone Web interface at

    Let me know if this solves your problem.

提交回复
热议问题