You are here

BrowserFrameTrait.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserFrameTrait.php

File

vendor/jcalderonzumba/gastonjs/src/Browser/BrowserFrameTrait.php
View source
<?php

namespace Zumba\GastonJS\Browser;


/**
 * Trait BrowserFrameTrait
 * @package Zumba\GastonJS\Browser
 */
trait BrowserFrameTrait {

  /**
   * Back to the parent of the iframe if possible
   * @return mixed
   * @throws \Zumba\GastonJS\Exception\BrowserError
   * @throws \Exception
   */
  public function popFrame() {
    return $this
      ->command("pop_frame");
  }

  /**
   * Goes into the iframe to do stuff
   * @param string $name
   * @param int    $timeout
   * @return mixed
   * @throws \Zumba\GastonJS\Exception\BrowserError
   * @throws \Exception
   */
  public function pushFrame($name, $timeout = null) {
    return $this
      ->command("push_frame", $name, $timeout);
  }

}

Traits

Namesort descending Description
BrowserFrameTrait Trait BrowserFrameTrait @package Zumba\GastonJS\Browser