/** * Gets the given condition's CssSelector and tests if the element matches it. */ boolean isCondition(WebDriver driver, WebElement element, ArgumentMap argumentMap, Selector simpleSelector, Condition condition) { @SuppressWarnings("unchecked") CssConditionalSelector<Condition, ConditionComponent> evaluator = (CssConditionalSelector<Condition, ConditionComponent>) conditionalCssSelectorFactory.getSelector(condition); return evaluator.isCondition(driver, element, argumentMap, simpleSelector, condition); }
/** * Gets the given condition's CssSelector and tests if the element matches it. */ boolean isCondition(WebDriver driver, WebElement element, ArgumentMap argumentMap, Selector simpleSelector, Condition condition) { @SuppressWarnings("unchecked") CssConditionalSelector<Condition, ConditionComponent> evaluator = (CssConditionalSelector<Condition, ConditionComponent>) conditionalCssSelectorFactory.getSelector(condition); return evaluator.isCondition(driver, element, argumentMap, simpleSelector, condition); }