Esempio n. 1
0
 public Navigator(AppiumSessionHandler sessionHandler, AppiumUiWrapperFactory factory, ISettings settings, ILogger logger, IElementFactory eFactory)
 {
     this.sessionHandler = sessionHandler;
     this.wFactory       = factory;
     this.settings       = settings;
     this.logger         = logger;
     this.elementFactory = eFactory;
 }
Esempio n. 2
0
        public static ITestContext Create(ISettings settings, IElementFactory eFactory)
        {
            var logger            = LoggerProvider.GetLogger(settings);
            var sessionHandler    = AppiumSessionHandler.GetInstance(settings, logger);
            var wrapperFactory    = new AppiumUiWrapperFactory();
            var navigationService = new Navigator(sessionHandler, wrapperFactory, settings, logger, eFactory);

            return(new AppiumTestContext(sessionHandler, navigationService, logger, settings));
        }
Esempio n. 3
0
 internal AppiumWrapperContext(
     string windowName,
     WindowsDriver <WindowsElement> driver,
     ILogger logger,
     ISettings settings,
     AppiumUiWrapperFactory wrapperFactory)
 {
     this.WindowName     = windowName;
     this.Settings       = settings;
     this.Logger         = logger;
     this.Driver         = driver;
     this.WrapperFactory = wrapperFactory;
 }