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);
}
}
}
}
}