Interface SelenideProxyServerFactory

All Known Implementing Classes:
DefaultSelenideProxyServerFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SelenideProxyServerFactory

Interface for creating custom SelenideProxyServer in your tests

  • Method Summary

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

    • create

      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