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