Class Selenium

    • Constructor Detail

      • Selenium

        public Selenium​(ClientApi api)
    • Method Detail

      • optionChromeBinaryPath

        public ApiResponse optionChromeBinaryPath()
                                           throws ClientApiException
        Returns the current path to Chrome binary

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • optionChromeDriverPath

        public ApiResponse optionChromeDriverPath()
                                           throws ClientApiException
        Returns the current path to ChromeDriver

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • optionFirefoxBinaryPath

        public ApiResponse optionFirefoxBinaryPath()
                                            throws ClientApiException
        Returns the current path to Firefox binary

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • optionFirefoxDriverPath

        public ApiResponse optionFirefoxDriverPath()
                                            throws ClientApiException
        Returns the current path to Firefox driver (geckodriver)

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • optionPhantomJsBinaryPath

        @Deprecated
        public ApiResponse optionPhantomJsBinaryPath()
                                              throws ClientApiException
        Deprecated.
        This component is optional and therefore the API will only work if it is installed
        Throws:
        ClientApiException
      • getBrowserArguments

        public ApiResponse getBrowserArguments​(java.lang.String browser)
                                        throws ClientApiException
        Gets the browser arguments.

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • setOptionChromeBinaryPath

        public ApiResponse setOptionChromeBinaryPath​(java.lang.String string)
                                              throws ClientApiException
        Sets the current path to Chrome binary

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • setOptionChromeDriverPath

        public ApiResponse setOptionChromeDriverPath​(java.lang.String string)
                                              throws ClientApiException
        Sets the current path to ChromeDriver

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • setOptionFirefoxBinaryPath

        public ApiResponse setOptionFirefoxBinaryPath​(java.lang.String string)
                                               throws ClientApiException
        Sets the current path to Firefox binary

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • setOptionFirefoxDefaultProfile

        public ApiResponse setOptionFirefoxDefaultProfile​(java.lang.String string)
                                                   throws ClientApiException
        This component is optional and therefore the API will only work if it is installed
        Throws:
        ClientApiException
      • setOptionFirefoxDriverPath

        public ApiResponse setOptionFirefoxDriverPath​(java.lang.String string)
                                               throws ClientApiException
        Sets the current path to Firefox driver (geckodriver)

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • setOptionIeDriverPath

        @Deprecated
        public ApiResponse setOptionIeDriverPath​(java.lang.String string)
                                          throws ClientApiException
        Deprecated.
        This component is optional and therefore the API will only work if it is installed
        Throws:
        ClientApiException
      • setOptionPhantomJsBinaryPath

        @Deprecated
        public ApiResponse setOptionPhantomJsBinaryPath​(java.lang.String string)
                                                 throws ClientApiException
        Deprecated.
        This component is optional and therefore the API will only work if it is installed
        Throws:
        ClientApiException
      • addBrowserArgument

        public ApiResponse addBrowserArgument​(java.lang.String browser,
                                              java.lang.String argument,
                                              java.lang.String enabled)
                                       throws ClientApiException
        Adds a browser argument.

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • launchBrowser

        public ApiResponse launchBrowser​(java.lang.String browser)
                                  throws ClientApiException
        Launches a browser proxying through ZAP, for manual usage.

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • removeBrowserArgument

        public ApiResponse removeBrowserArgument​(java.lang.String browser,
                                                 java.lang.String argument)
                                          throws ClientApiException
        Removes a browser argument.

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException
      • setBrowserArgumentEnabled

        public ApiResponse setBrowserArgumentEnabled​(java.lang.String browser,
                                                     java.lang.String argument,
                                                     java.lang.String enabled)
                                              throws ClientApiException
        Sets whether or not a browser argument is enabled.

        This component is optional and therefore the API will only work if it is installed

        Throws:
        ClientApiException