THANASOFT-DV/gestion/vendor/php-webdriver/webdriver/lib/WebDriverSearchContext.php
2025-09-03 15:58:58 +03:00

32 lines
877 B
PHP

<?php
namespace Facebook\WebDriver;
/**
* The interface for WebDriver and WebDriverElement which is able to search for
* WebDriverElement inside.
*/
interface WebDriverSearchContext
{
/**
* Find the first WebDriverElement within this element using the given
* mechanism.
*
* @param WebDriverBy $locator
* @return WebDriverElement NoSuchElementException is thrown in
* HttpCommandExecutor if no element is found.
* @see WebDriverBy
*/
public function findElement(WebDriverBy $locator);
/**
* Find all WebDriverElements within this element using the given mechanism.
*
* @param WebDriverBy $locator
* @return WebDriverElement[] A list of all WebDriverElements, or an empty array if
* nothing matches
* @see WebDriverBy
*/
public function findElements(WebDriverBy $locator);
}