Running selenium on a Windows 2008 server

I am trying to automate some selenium tests. I can run them locally on my machine, but when I try to run them on a Windows 2008 server (the server that our CI server runs on), the Firefox window opens only if I open the cmd line with administrator privileges. I do not want this to be done as administrator, so the question is: what do I need to do to open a Firefox window with a regular user?

+4
source share
1 answer

There is nothing you can do about it. Starting with Windows Vista, Microsoft has blocked “interactive” sessions, and therefore launching the WebDriver grid center as a service that launches browsers in a desktop session will not work if you are not using Windows XP. So, you need to make several grid nodes that work in the foreground and leave these desktop sessions open in Windows 2008. Also, with Jenkins, running Selenium tests (without a grid) will have the same problem as running Jenkins in the foreground plan.

Windows : " ​​ . ". , " 0. , , , 0." . .

Java, SystemTray, node . , VisGrid .

Linux xvfb , setup , . Windows, , .

+2

Source: https://habr.com/ru/post/1538455/


All Articles