Interface BrowserManager

  • All Superinterfaces:
    AutoCloseable

    @Role
    @Unstable
    public interface BrowserManager
    extends AutoCloseable
    Manages the web browser used for printing to PDF.
    Since:
    14.8
    Version:
    $Id: 6310347148938b95400f915afbf27da6b2ccb83b $
    • Method Detail

      • connect

        void connect​(String host,
                     int port)
              throws TimeoutException
        Attempts to connect to the web browser that runs on the specified host, behind the specified port.
        Parameters:
        host - the host running the web browser, specified either as an IP address or a host name
        port - the port number to connect to
        Throws:
        TimeoutException - if the connection timeouts
      • isConnected

        boolean isConnected()
        Returns:
        true if the web browser can be accessed, false otherwise
      • createIncognitoTab

        BrowserTab createIncognitoTab()
                               throws IOException
        Opens a new web browser tab that uses a separate browser context (profile).
        Returns:
        the create tab
        Throws:
        IOException