Esempio n. 1
0
 public VisualStateProvider(IImageComparator imageComparator, IElementActionRetrier actionRetrier, Func <WebElement> getElement, LogVisualState logVisualState)
 {
     this.imageComparator = imageComparator;
     this.actionRetrier   = actionRetrier;
     this.getElement      = getElement;
     this.logVisualState  = logVisualState;
 }
Esempio n. 2
0
 public MouseActions(IElement element, string elementType, ILocalizedLogger logger, IElementActionRetrier elementActionsRetrier)
 {
     this.element               = element;
     this.elementType           = elementType;
     this.logger                = logger;
     this.elementActionsRetrier = elementActionsRetrier;
 }
 /// <summary>
 /// Instantiates Element actions for a specific element.
 /// </summary>
 /// <param name="element">Target element.</param>
 /// <param name="elementType">Target element's type.</param>
 /// <param name="windowsDriverSupplier">Method to get current application session.</param>
 /// <param name="localizedLogger">Logger for localized values.</param>
 /// <param name="elementActionsRetrier">Retrier for element actions.</param>
 protected ElementActions(IElement element, string elementType, Func <WindowsDriver <WindowsElement> > windowsDriverSupplier, ILocalizedLogger localizedLogger, IElementActionRetrier elementActionsRetrier)
 {
     this.element               = element;
     this.elementType           = elementType;
     this.windowsDriverSupplier = windowsDriverSupplier;
     this.localizedLogger       = localizedLogger;
     this.elementActionsRetrier = elementActionsRetrier;
 }
Esempio n. 4
0
 /// <summary>
 /// Instantiates Keyboard actions for a specific element.
 /// </summary>
 /// <param name="element">Target element.</param>
 /// <param name="elementType">Target element's type.</param>
 /// <param name="windowsDriverSupplier">Method to get current application session.</param>
 /// <param name="localizedLogger">Logger for localized values.</param>
 /// <param name="elementActionsRetrier">Retrier for element actions.</param>
 public KeyboardActions(IElement element, string elementType, Func <WindowsDriver <WindowsElement> > windowsDriverSupplier, ILocalizedLogger localizedLogger, IElementActionRetrier elementActionsRetrier)
     : base(element, elementType, windowsDriverSupplier, localizedLogger, elementActionsRetrier)
 {
 }
 /// <summary>
 /// Instantiates Mouse actions for a specific element.
 /// </summary>
 /// <param name="element">Target element.</param>
 /// <param name="elementType">Target element's type.</param>
 /// <param name="windowsDriverSupplier">Method to get current application session.</param>
 /// <param name="localizationLogger">Logger for localized values.</param>
 /// <param name="elementActionsRetrier">Retrier for element actions.</param>
 public MouseActions(IElement element, string elementType, Func <WindowsDriver <WindowsElement> > windowsDriverSupplier, ILocalizedLogger localizationLogger, IElementActionRetrier elementActionsRetrier)
     : base(element, elementType, windowsDriverSupplier, localizationLogger, elementActionsRetrier)
 {
     this.element = element;
     remoteTouchScreenSupplier = () => new RemoteTouchScreen(windowsDriverSupplier());
 }