Interface SelenideProxyServerFactory

All Known Implementing Classes:
DefaultSelenideProxyServerFactory

@ParametersAreNonnullByDefault public interface SelenideProxyServerFactory

Interface for creating custom SelenideProxyServer in your tests

  • Method Summary

    Modifier and Type
    Method
    Description
    create(Config config, org.openqa.selenium.Proxy userProvidedProxy)
    Creates a SelenideProxyServer Allows user to change settings of BrowserUpProxy before the proxy is started.
  • Method Details

    • create

      @Nonnull @CheckReturnValue SelenideProxyServer create(Config config, @Nullable org.openqa.selenium.Proxy userProvidedProxy)
      Creates a SelenideProxyServer Allows user to change settings of BrowserUpProxy before the proxy is started. Allows user to change settings of Selenium proxy. Must call SelenideProxyServer.start() to start proxy server. Must call SelenideProxyServer.createSeleniumProxy() to create Selenium proxy server instance. For implementation example see DefaultSelenideProxyServerFactory
      Parameters:
      config - - selenide config
      userProvidedProxy - - additional proxy provided from user
      Returns:
      new SelenideProxyServer instance