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