1<?php
2
3namespace Facebook\WebDriver;
4
5/**
6 * An abstraction allowing the driver to access the browser's history and to
7 * navigate to a given URL.
8 */
9interface WebDriverNavigationInterface
10{
11    /**
12     * Move back a single entry in the browser's history, if possible.
13     * This is equivalent to pressing the back button in the browser or invoking window.history.back.
14     *
15     * @return self
16     */
17    public function back();
18
19    /**
20     * Move forward a single entry in the browser's history, if possible.
21     * This is equivalent to pressing the forward button in the browser or invoking window.history.back.
22     *
23     * @return self
24     */
25    public function forward();
26
27    /**
28     * Refresh the current page
29     * This is equivalent to pressing the refresh button in the browser.
30     *
31     * @return self
32     */
33    public function refresh();
34
35    /**
36     * Navigate to the given URL
37     *
38     * @param string $url
39     * @return self
40     * @see WebDriver::get()
41     */
42    public function to($url);
43}
44