public NewlyCreatedElementFinder(IElementContainer browser, Constraint elementConstraint)
 {
     _browser           = browser;
     _elementConstraint = elementConstraint;
     _knownElements     = browser.Elements <TElement>(elementConstraint).AsImmutable();
 }
Exemplo n.º 2
0
 public ExampleElementsGroup(IElementContainer divElement)
 {
     ExampleText   = divElement.Elements <TextField>(ExampleTextElementConstraint).Single();
     _deleteButton = divElement.Elements <Button>(Find.ByClass("deleteExample")).Single();
 }
Exemplo n.º 3
0
 public QuestionElementsGroup(IElementContainer divElement)
 {
     QuestionText  = divElement.Elements <TextField>(QuestionTextElementConstraint).Single();
     _deleteButton = divElement.Elements <Button>(Find.ByClass("deleteQuestion")).Single();
 }
Exemplo n.º 4
0
 public RuleElementsGroup(IElementContainer ruleGroupDiv)
 {
     _ruleGroupDiv = ruleGroupDiv;
     RuleText      = ruleGroupDiv.Elements <TextField>(RuleTextElementConstraint).Single();
     _deleteButton = ruleGroupDiv.Elements <Button>(Find.ByClass("deleteRule")).Single();
 }