private function callWindowMethods($name, $args)
{
$method = lcfirst(substr($name, 6));
switch ($method) {
case 'maximize':
case 'getPosition':
case 'getSize':
$values = call_user_func(array($this->manage()->window(), $method));
break;
case 'setPosition':
case 'setSize':
$values = call_user_func(array($this->manage()->window(), $method), $args[0], $args[1]);
break;
default:
throw new \Exception('Invalid magic call: ' . $name);
}
return $values;
}