Nearsoft\SeleniumClient\WebDriver::__call PHP Метод

__call() публичный Метод

Enables window's methods be invoked Example: windowMaximize, windowGetPosition. Enables TargetLocator's methods Examples: switchToWindow, switchToFrame Enables findElement and findElements methods be invoked through method missing. The methods should be invoked with the format 'findElementBy'. Arguments should match those required by findElement and findElements methods. i.e. findElementByCssSelector, findElementByTagName, findElementsByXPath
public __call ( string $name, array $args ) : mixed
$name string
$args array
Результат mixed
    public function __call($name, array $args)
    {
        if (strpos($name, "navigation") === 0) {
            $this->callNavigationMethods($name, $args);
            return;
        } else {
            if (strpos($name, "window") === 0) {
                $values = $this->callWindowMethods($name, $args);
                return $values;
            } else {
                if (strpos($name, "switchTo") === 0) {
                    $values = $this->callSwitchTo($name, $args);
                    return $values;
                } else {
                    if (strpos($name, 'findElement') === 0) {
                        return $this->callFindElement($name, $args);
                    } else {
                        throw new \Exception('Invalid magic call: ' . $name);
                    }
                }
            }
        }
    }