Search in sources :

Example 1 with BrowserMobProxySupplier

use of com.hribol.automation.core.suppliers.BrowserMobProxySupplier in project selenium_java by sergueik.

the class RecordSettingsBase method prepareRecord.

@Override
public void prepareRecord(int timeout) {
    this.proxy = new BrowserMobProxySupplier(timeout, requestFilter, responseFilter).get();
    Proxy seleniumProxy = new SeleniumProxySupplier(proxy).get();
    DesiredCapabilities desiredCapabilities = new DesiredCapabilitiesSupplier(seleniumProxy).get();
    this.driver = webDriverSupplier.get(desiredCapabilities);
    this.driver.manage().window().maximize();
}
Also used : DesiredCapabilitiesSupplier(com.hribol.automation.core.suppliers.DesiredCapabilitiesSupplier) Proxy(org.openqa.selenium.Proxy) BrowserMobProxy(net.lightbody.bmp.BrowserMobProxy) SeleniumProxySupplier(com.hribol.automation.core.suppliers.SeleniumProxySupplier) DesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities) BrowserMobProxySupplier(com.hribol.automation.core.suppliers.BrowserMobProxySupplier)

Aggregations

BrowserMobProxySupplier (com.hribol.automation.core.suppliers.BrowserMobProxySupplier)1 DesiredCapabilitiesSupplier (com.hribol.automation.core.suppliers.DesiredCapabilitiesSupplier)1 SeleniumProxySupplier (com.hribol.automation.core.suppliers.SeleniumProxySupplier)1 BrowserMobProxy (net.lightbody.bmp.BrowserMobProxy)1 Proxy (org.openqa.selenium.Proxy)1 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)1