How to run selenium webdriver in the background?

后端 未结 6 1707
误落风尘
误落风尘 2021-01-15 05:36

I\'ve been using Selenium for 2 weeks.

It\'s been really useful so far.

When developing, I like having the browsers pop up so I can see what\'s going on, b

6条回答
  •  臣服心动
    2021-01-15 05:58

    if the server is on linux, you can allocate a display just to run selenium using Xvfb to create a virtual display

    if the server is on windows you can register the daemon to run as another user than the user logged in, giving the service a desktop. this only work for the local system admin account or by registry tweaking as detailed here note that you will have to set up internet explorer properties for the user the service is running as

提交回复
热议问题