3 namespace Zumba\GastonJS\Browser;
6 * Trait BrowserPageTrait
7 * @package Zumba\GastonJS\Browser
9 trait BrowserPageTrait {
11 * Gets the status code of the request we are currently in
14 public function getStatusCode() {
15 return $this->command('status_code');
19 * Returns the body of the response to a given browser request
22 public function getBody() {
23 return $this->command('body');
27 * Returns the source of the current page
30 public function getSource() {
31 return $this->command('source');
35 * Gets the current page title
38 public function getTitle() {
39 return $this->command('title');
43 * Resize the current page
48 public function resize($width, $height) {
49 return $this->command('resize', $width, $height);
53 * Resets the page we are in to a clean slate
56 public function reset() {
57 return $this->command('reset');