Пример #1
0
 public ClickWebStep(String name = null, HtmlElementLocator locator = null, string method = "click", WebValidator validator = null)
     : base(name)
 {
     this.ElementLocator = locator;
     this.Method = method;
     this.Validator = validator;
 }
Пример #2
0
 public FormWebStep(String name = null, HtmlElementLocator locator = null, Dictionary<string, string> parameters = null, string method = "submit", WebValidator validator = null, WebCallback preElementLocatorCallback = null)
     : base(name)
 {
     this.ElementLocator = locator;
     this.Method = method;
     this.Parameters = parameters;
     this.Validator = validator;
     this.PreElementLocatorCallback = preElementLocatorCallback;
 }
Пример #3
0
 public LocatorCheckValidator(HtmlElementLocator locator = null)
 {
     Locator = locator;
 }
Пример #4
0
 public ValueCheckValidator(HtmlElementLocator locator = null, string attributeName = null, string value = null, Regex valueRegex = null)
 {
     this.Locator = locator;
     this.AttributeName = attributeName;
     this.Value = value;
     this.ValueRegex = valueRegex;
 }
Пример #5
0
 public StyleCheckValidator(HtmlElementLocator locator = null, string value = null, Regex valueRegex = null, ValueValidateDelegate checkDelegate = null)
 {
     this.Locator = locator;
     this.Value = value;
     this.ValueRegex = valueRegex;
     this.CheckDelegate = checkDelegate;
 }