Package com.codeborne.selenide.proxy
Class DefaultSelenideProxyServerFactory
java.lang.Object
com.codeborne.selenide.proxy.DefaultSelenideProxyServerFactory
- All Implemented Interfaces:
SelenideProxyServerFactory
@ParametersAreNonnullByDefault
public class DefaultSelenideProxyServerFactory
extends Object
implements SelenideProxyServerFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates aSelenideProxyServer
Allows user to change settings of BrowserUpProxy before the proxy is started.
-
Constructor Details
-
DefaultSelenideProxyServerFactory
public DefaultSelenideProxyServerFactory()
-
-
Method Details
-
create
@Nonnull public SelenideProxyServer create(Config config, @Nullable org.openqa.selenium.Proxy userProvidedProxy) Description copied from interface:SelenideProxyServerFactory
Creates aSelenideProxyServer
Allows user to change settings of BrowserUpProxy before the proxy is started. Allows user to change settings of Selenium proxy. Must callSelenideProxyServer.start()
to start proxy server. Must callSelenideProxyServer.createSeleniumProxy()
to create Selenium proxy server instance. For implementation example seeDefaultSelenideProxyServerFactory
- Specified by:
create
in interfaceSelenideProxyServerFactory
- Parameters:
config
- - selenide configuserProvidedProxy
- - additional proxy provided from user- Returns:
- new
SelenideProxyServer
instance
-