Headless Selenium Grid node
xvfb-run java -jar selenium-server-standalone-2.25.0.jar -role node -hub http://localhost:4444/grid/register & - allows to run a headless Selenium Grid node
To setup a custom Firefox profile at headless server might helps an vnc server. The following example is for CentOS.
vncserver :12 - run an vnc server( do not forget to install it)
export DISPLAY=:12 - make active display where vnc is run
firefox -P - run the Firefox profile manager
When you connect with vnc viewer client to 5012 port you'll see the Firefox profile manager
comments (1)
I have recently switched to selenium grid, before grid setup function doing like this:
from pyvirtualdisplay import Display
setUp(self):
self.display = Display(visible=0, size=(1280, 700))
self.display.start()
self.driver = webdriver.Chrome()
Now after grid:
setUp(self):
capabilities=DesiredCapabilities.CHROME.copy()
capabilities['platform']="LINUX"
self.driver=webdriver.Remote(desired_capabilities=capabilities,
command_executor="http://localhost:4444/wd/hub")
can you please tell how can I configure headless xvfb display in my code.
Thanks.