trait BrowserNavigateTrait in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserNavigateTrait.php \Zumba\GastonJS\Browser\BrowserNavigateTrait
Trait BrowserNavigateTrait @package Zumba\GastonJS\Browser
Hierarchy
- trait \Zumba\GastonJS\Browser\BrowserNavigateTrait
File
- vendor/
jcalderonzumba/ gastonjs/ src/ Browser/ BrowserNavigateTrait.php, line 11
Namespace
Zumba\GastonJS\BrowserView source
trait BrowserNavigateTrait {
/**
* Send a visit command to the browser
* @param $url
* @return mixed
*/
public function visit($url) {
return $this
->command('visit', $url);
}
/**
* Gets the current url we are in
* @return mixed
*/
public function currentUrl() {
return $this
->command('current_url');
}
/**
* Goes back on the browser history if possible
* @return bool
* @throws BrowserError
* @throws \Exception
*/
public function goBack() {
return $this
->command('go_back');
}
/**
* Goes forward on the browser history if possible
* @return mixed
* @throws BrowserError
* @throws \Exception
*/
public function goForward() {
return $this
->command('go_forward');
}
/**
* Reloads the current page we are in
*/
public function reload() {
return $this
->command('reload');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BrowserNavigateTrait:: |
public | function | Gets the current url we are in | |
BrowserNavigateTrait:: |
public | function | Goes back on the browser history if possible | |
BrowserNavigateTrait:: |
public | function | Goes forward on the browser history if possible | |
BrowserNavigateTrait:: |
public | function | Reloads the current page we are in | |
BrowserNavigateTrait:: |
public | function | Send a visit command to the browser |