You are here

trait BrowserFrameTrait in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserFrameTrait.php \Zumba\GastonJS\Browser\BrowserFrameTrait

Trait BrowserFrameTrait @package Zumba\GastonJS\Browser

Hierarchy

File

vendor/jcalderonzumba/gastonjs/src/Browser/BrowserFrameTrait.php, line 9

Namespace

Zumba\GastonJS\Browser
View source
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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BrowserFrameTrait::popFrame public function Back to the parent of the iframe if possible
BrowserFrameTrait::pushFrame public function Goes into the iframe to do stuff