public MyChromeDriver(ChromeDriverService service, Capabilities capabilities) { super(new MyChromeDriverCommandExecutor(service), capabilities); this.locationContext = new RemoteLocationContext(this.getExecuteMethod()); this.webStorage = new RemoteWebStorage(this.getExecuteMethod()); this.touchScreen = new RemoteTouchScreen(this.getExecuteMethod()); this.networkConnection = new RemoteNetworkConnection(this.getExecuteMethod()); }
static WebStorage getWebStorage(WebDriver driver) { return convert(driver, WebStorage.class, CapabilityType.SUPPORTS_WEB_STORAGE, RemoteWebStorage.class); }