Selenium - change permission in node service

I use Selenium 3.01in windows server 2012 R2. Tests are performed remotely via webdriver.

The problem is that node is running as a service, the resolution is too small, and the tests continue to fail.

When starting node as a process during login, everything is fine, because the resolution is much better.

I see a big difference when taking pictures on failure.

How to change the resolution?

Driver.set_windowsize(x,y) 

or

Driver.maximize_window()

They do not work because the resolution of the server is less.

Any ideas? Thanks you

+4
source share
2 answers

I solved the problem. I am using a virtual machine through VMware ESX.

, , , .

, VMware KB.

, :

  • :

    HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\VIDEO\{Address of primary video card}\0000\

  • DefaultSettings.XResolution X. , . IE 1152.

  • DefaultSettings.YResolution. Y. , . IE 863.

  • , .

, , Selenium node Allow service to interact with desktop.

:

Driver.set_windowsize(x,y) 
+3

, , , , node .

  • node
  • ( , "X" )

, , , , .

0

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


All Articles