Lines Matching defs:element_or_by
487 * @param mixed $element_or_by Either the element or the locator.
490 public static function elementToBeSelected($element_or_by)
493 $element_or_by,
501 * @param mixed $element_or_by Either the element or the locator.
505 public static function elementSelectionStateToBe($element_or_by, $selected)
507 if ($element_or_by instanceof WebDriverElement) {
509 function () use ($element_or_by, $selected) {
510 return $element_or_by->isSelected() === $selected;
515 if ($element_or_by instanceof WebDriverBy) {
517 function (WebDriver $driver) use ($element_or_by, $selected) {
519 $element = $driver->findElement($element_or_by);