public static IBrowserCamera CreateNew(RemoteWebDriver driver, BrowserCameraConfig cameraConfig) { var lens = BrowserCameraLensFactory.Create(driver, cameraConfig.LensType); return(new BrowserCamera(driver, lens)); }
public static IBrowserCamera CreateErrorBrowserCamera(RemoteWebDriver driver) { var lens = BrowserCameraLensFactory.CreateLensForAutoMode(driver); return(new ErrorBrowserCamera(lens)); }