trait BrowserPageTrait in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserPageTrait.php \Zumba\GastonJS\Browser\BrowserPageTrait
Trait BrowserPageTrait @package Zumba\GastonJS\Browser
Hierarchy
- trait \Zumba\GastonJS\Browser\BrowserPageTrait
File
- vendor/
jcalderonzumba/ gastonjs/ src/ Browser/ BrowserPageTrait.php, line 9
Namespace
Zumba\GastonJS\BrowserView source
trait BrowserPageTrait {
/**
* Gets the status code of the request we are currently in
* @return mixed
*/
public function getStatusCode() {
return $this
->command('status_code');
}
/**
* Returns the body of the response to a given browser request
* @return mixed
*/
public function getBody() {
return $this
->command('body');
}
/**
* Returns the source of the current page
* @return mixed
*/
public function getSource() {
return $this
->command('source');
}
/**
* Gets the current page title
* @return mixed
*/
public function getTitle() {
return $this
->command('title');
}
/**
* Resize the current page
* @param $width
* @param $height
* @return mixed
*/
public function resize($width, $height) {
return $this
->command('resize', $width, $height);
}
/**
* Resets the page we are in to a clean slate
* @return mixed
*/
public function reset() {
return $this
->command('reset');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BrowserPageTrait:: |
public | function | Returns the body of the response to a given browser request | |
BrowserPageTrait:: |
public | function | Returns the source of the current page | |
BrowserPageTrait:: |
public | function | Gets the status code of the request we are currently in | |
BrowserPageTrait:: |
public | function | Gets the current page title | |
BrowserPageTrait:: |
public | function | Resets the page we are in to a clean slate | |
BrowserPageTrait:: |
public | function | Resize the current page |