Пример #1
0
 public Application(AppiumDriver <AppiumWebElement> driver, AppiumLocalService driverService = null)
 {
     Driver             = driver;
     DriverService      = driverService;
     localizedLogger    = AqualityServices.LocalizedLogger;
     applicationProfile = AqualityServices.ApplicationProfile;
     SetImplicitlyWaitToDriver(AqualityServices.Get <ITimeoutConfiguration>().Implicit);
 }
Пример #2
0
        protected PlatformNotSupportedException GetLoggedWrongPlatformNameException(string actualPlatform)
        {
            var message = AqualityServices.Get <ILocalizationManager>()
                          .GetLocalizedMessage("loc.platform.name.wrong", actualPlatform);
            var exception = new PlatformNotSupportedException(message);

            AqualityServices.Logger.Fatal(message, exception);
            return(exception);
        }
Пример #3
0
        protected virtual AppiumDriver <AppiumWebElement> GetDriver(Uri serviceUrl)
        {
            var platformName   = AqualityServices.ApplicationProfile.PlatformName;
            var driverOptions  = AqualityServices.ApplicationProfile.DriverSettings.AppiumOptions;
            var commandTimeout = AqualityServices.Get <ITimeoutConfiguration>().Command;

            return(new CustomActionRetrier().DoWithRetry(
                       () => CreateSession(platformName, serviceUrl, driverOptions, commandTimeout)));
        }
Пример #4
0
 public CustomActionRetrier()
     : base(AqualityServices.Get <IRetryConfiguration>())
 {
 }