FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-webdriver/lib/WebDriverNavigation.php at main · php-webdriver/php-webdriver · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
php-webdriver
/
php-webdriver
Public
Notifications
You must be signed in to change notification settings
Fork
842
Star
5.2k
Code
Issues
21
Pull requests
9
Discussions
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
php-webdriver
/
lib
/
WebDriverNavigation.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (33 loc) · 875 Bytes
Breadcrumbs
php-webdriver
/
lib
/
WebDriverNavigation.php
Copy path
File metadata and controls
45 lines (33 loc) · 875 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
44
45
<?php
namespace
Facebook
\
WebDriver
;
use
Facebook
\
WebDriver
\
Remote
\
DriverCommand
;
use
Facebook
\
WebDriver
\
Remote
\
ExecuteMethod
;
class
WebDriverNavigation
implements
WebDriverNavigationInterface
{
protected
$
executor
;
public
function
__construct
(
ExecuteMethod
$
executor
)
{
$
this
->
executor
=
$
executor
;
}
public
function
back
()
{
$
this
->
executor
->
execute
(DriverCommand::
GO_BACK
);
return
$
this
;
}
public
function
forward
()
{
$
this
->
executor
->
execute
(DriverCommand::
GO_FORWARD
);
return
$
this
;
}
public
function
refresh
()
{
$
this
->
executor
->
execute
(DriverCommand::
REFRESH
);
return
$
this
;
}
public
function
to
(
$
url
)
{
$
params
= [
'
url
'
=> (
string
)
$
url
];
$
this
->
executor
->
execute
(DriverCommand::
GET
,
$
params
);
return
$
this
;
}
}
Back
|
FazBrowse Home
|
New Git URL