public WindowHandleApplicationFactory(Uri driverServerUri, Func<WindowsDriver<WindowsElement>, string> getWindowHandleFunction) : base() { this.driverServerUri = driverServerUri; this.getWindowHandleFunction = getWindowHandleFunction; isRemote = AqualityServices.Get<IApplicationProfile>().IsRemote; }
/// <summary> /// Instantiate application. /// </summary> /// <param name="createApplicationSession">Function to create an instance of WinAppDriver for current application</param> /// <param name="createRootSession">Function to create an instance of WinAppDriver for desktop session</param> public Application(Func <WindowsDriver> createApplicationSession, Func <WindowsDriver> createRootSession) { this.createApplicationSession = createApplicationSession; this.createDesktopSession = createRootSession; Logger = AqualityServices.LocalizedLogger; KeyboardActions = AqualityServices.KeyboardActions; MouseActions = AqualityServices.MouseActions; var timeoutConfiguration = AqualityServices.Get <ITimeoutConfiguration>(); implicitWait = timeoutConfiguration.Implicit; }
protected ApplicationFactory() { LocalizedLogger = AqualityServices.LocalizedLogger; DriverSettings = AqualityServices.Get <IDriverSettings>(); timeoutConfiguration = AqualityServices.Get <ITimeoutConfiguration>(); }