/** * Navigates to the given URL. * * @param string $url URL * @param boolean $reload force reload */ public function navigateTo($url, $reload = null) { $arguments = array('"' . str_replace('"', '\\"', $url) . '"'); if (null !== $reload) { $arguments[] = (bool) $reload ? 'true' : 'false'; } $this->con->executeStep(sprintf('_sahi._navigateTo(%s)', implode(', ', $arguments))); }
/** * Highlight element. */ public function highlight() { $this->con->executeStep(sprintf('_sahi._highlight(%s)', $this->getAccessor())); }