Traits used by all VncDriverFactories
This class controls the startup of new VNC Servers.
Tries to find an unused port for selenium server.
The default selenium port is just a fixed offset added to the display id
The default selenium port is just a fixed offset added to the display id
This can cause problems when running multiple tests in different VMs. The selenium server started by another process using the same port may be used because there is no way to detect if selenium is already running or to decide if it was started by another VM trying to use the same port.
This can be fixed by monitoring the output stream of vnc.sh but it is easier to just use random port numbers.
A trait providing the URL used to connect to selenium running inside of the VNC Server.
A WebDriverFactory used to start Chrome inside of a VNC Server.
A WebDriverFactory used to start Chrome inside of a VNC Server.
type of the VncServer to use, normally DefaultVncServer
manager used to create and release a VncServer
A WebDriverFactory used to connect to a selenium server running inside of a VNC Server.
A WebDriverFactory used to connect to a selenium server running inside of a VNC Server.
A VncServerManager is used to create and release a VncServer.
type of the VncServer to use, normally DefaultVncServer
A WebDriverFactory used to start Firefox inside of a VNC Server.
A WebDriverFactory used to start Firefox inside of a VNC Server.
type of the VncServer to use, normally DefaultVncServer
manager used to create and release a VncServer
trait to start and stop a VNC Server instance.
VncManager will start a new VncServer when needed.
VncManager will start a new VncServer when needed.
A previously released VNC Server will be cached and reused if needed.
Because it is not safe to releay on shutdownAll, the VncServer should shutdown itself then the parent process has gone.
You can configure the port range used by VNC, the default is to use ports from one upwards.
This DriverFactory will launch a VNC Server, start the selenium server inside and the creates a Chrome Browser with matching RemoteWebDriver to connect into the VNC Server.
This DriverFactory will launch a VNC Server, start the selenium server inside and the creates a Firefox Browser with matching RemoteWebDriver to connect into the VNC Server.
A VncServerManager creating DefaultVncServer instances.
This class controls the startup of new VNC Servers.
Default start/check/stop command lines are provided here.
You can configure the used script by setting the environment variable PAGEOBJECT_VNC_SCRIPT.
It is recommented that the VNC script will watch the parent process id ($PPID in bash) and shutdown the VNC Server when the process has finished.
Because you can easly stop the java process using the debugger no additional cleanup is required to terminate the VNC server cleanly when watching the PPID