/** * An expectation for checking if the given element is selected. * * @param mixed element_or_by Either the element or the locator. * @return WebDriverExpectedCondition<bool> whether the element is selected. */ public static function elementToBeSelected($element_or_by) { return WebDriverExpectedCondition::elementSelectionStateToBe($element_or_by, true); }