public WindowHandleApplicationFactory(Uri driverServerUri, Func<WindowsDriver<WindowsElement>, string> getWindowHandleFunction)
     : base()
 {
     this.driverServerUri = driverServerUri;
     this.getWindowHandleFunction = getWindowHandleFunction;
     isRemote = AqualityServices.Get<IApplicationProfile>().IsRemote;
 }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
 protected ApplicationFactory()
 {
     LocalizedLogger      = AqualityServices.LocalizedLogger;
     DriverSettings       = AqualityServices.Get <IDriverSettings>();
     timeoutConfiguration = AqualityServices.Get <ITimeoutConfiguration>();
 }