public Application(AppiumDriver <AppiumWebElement> driver, AppiumLocalService driverService = null) { Driver = driver; DriverService = driverService; localizedLogger = AqualityServices.LocalizedLogger; applicationProfile = AqualityServices.ApplicationProfile; SetImplicitlyWaitToDriver(AqualityServices.Get <ITimeoutConfiguration>().Implicit); }
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); }
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))); }
public CustomActionRetrier() : base(AqualityServices.Get <IRetryConfiguration>()) { }