Package

org.pageobject.core.driver

vnc

Permalink

package vnc

Visibility
  1. Public
  2. All

Type Members

  1. trait CountedId extends AnyRef

    Permalink
  2. trait DefaultVncDriverTraits extends FixedLocation with TakeScreenshot with TracedRemoteDriverFactory with LoggingDriverFactory with ThreadNameNumberingDriverFactory

    Permalink

    Traits used by all VncDriverFactories

  3. case class DefaultVncServer(onTerminated: (Boolean) ⇒ Unit) extends SeleniumVncServer with CountedId with FindFreeSeleniumPort with Product with Serializable

    Permalink

    This class controls the startup of new VNC Servers.

    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

  4. trait FindFreeSeleniumPort extends AnyRef

    Permalink

    Tries to find an unused port for selenium server.

  5. trait FixedSeleniumPort extends AnyRef

    Permalink

    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.

  6. trait SeleniumVncServer extends VncServer

    Permalink

    A trait providing the URL used to connect to selenium running inside of the VNC Server.

  7. case class VncChromeDriverFactory[V <: SeleniumVncServer](vncServerManager: VncServerManager[V]) extends VncDriverFactory[V] with TraceBrowserConsole with Product with Serializable

    Permalink

    A WebDriverFactory used to start Chrome inside of a VNC Server.

    A WebDriverFactory used to start Chrome inside of a VNC Server.

    V

    type of the VncServer to use, normally DefaultVncServer

    vncServerManager

    manager used to create and release a VncServer

  8. abstract class VncDriverFactory[V <: SeleniumVncServer] extends RemoteDriverFactory with Logging

    Permalink

    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.

    V

    type of the VncServer to use, normally DefaultVncServer

  9. case class VncFirefoxDriverFactory[V <: SeleniumVncServer](vncServerManager: VncServerManager[V]) extends VncDriverFactory[V] with Product with Serializable

    Permalink

    A WebDriverFactory used to start Firefox inside of a VNC Server.

    A WebDriverFactory used to start Firefox inside of a VNC Server.

    V

    type of the VncServer to use, normally DefaultVncServer

    vncServerManager

    manager used to create and release a VncServer

  10. trait VncServer extends Logging

    Permalink

    trait to start and stop a VNC Server instance.

  11. case class VncServerManager[V <: VncServer](createVncServer: ((Boolean) ⇒ Unit) ⇒ V) extends WaitFor with Logging with Product with Serializable

    Permalink

    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.

Value Members

  1. object CountedId

    Permalink

    You can configure the port range used by VNC, the default is to use ports from one upwards.

  2. object DefaultVncChromeDriverFactory extends VncChromeDriverFactory[DefaultVncServer] with DefaultVncDriverTraits

    Permalink

    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.

  3. object DefaultVncFirefoxDriverFactory extends VncFirefoxDriverFactory[DefaultVncServer] with DefaultVncDriverTraits

    Permalink

    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.

  4. object DefaultVncServerManager extends VncServerManager[DefaultVncServer]

    Permalink

    A VncServerManager creating DefaultVncServer instances.

Ungrouped