FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-webdriver/lib/WebDriver.php at main · imanrep/php-webdriver · GitHub
imanrep
/
php-webdriver
Public
forked from
php-webdriver/php-webdriver
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
php-webdriver
/
lib
/
WebDriver.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
143 lines (125 loc) · 3.57 KB
Breadcrumbs
php-webdriver
/
lib
/
WebDriver.php
Copy path
File metadata and controls
executable file
·
143 lines (125 loc) · 3.57 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
namespace
Facebook
\
WebDriver
;
use
Facebook
\
WebDriver
\
Interactions
\
Touch
\
WebDriverTouchScreen
;
/**
* The interface for WebDriver.
*/
interface
WebDriver
extends
WebDriverSearchContext
{
/**
* Close the current window.
*
* @return WebDriver The current instance.
*/
public
function
close
();
/**
* Load a new web page in the current browser window.
*
* @param string $url
* @return WebDriver The current instance.
*/
public
function
get
(
$
url
);
/**
* Get a string representing the current URL that the browser is looking at.
*
* @return string The current URL.
*/
public
function
getCurrentURL
();
/**
* Get the source of the last loaded page.
*
* @return string The current page source.
*/
public
function
getPageSource
();
/**
* Get the title of the current page.
*
* @return string The title of the current page.
*/
public
function
getTitle
();
/**
* Return an opaque handle to this window that uniquely identifies it within
* this driver instance.
*
* @return string The current window handle.
*/
public
function
getWindowHandle
();
/**
* Get all window handles available to the current session.
*
* @return array An array of string containing all available window handles.
*/
public
function
getWindowHandles
();
/**
* Quits this driver, closing every associated window.
*/
public
function
quit
();
/**
* Take a screenshot of the current page.
*
* @param string $save_as The path of the screenshot to be saved.
* @return string The screenshot in PNG format.
*/
public
function
takeScreenshot
(
$
save_as
=
null
);
/**
* Construct a new WebDriverWait by the current WebDriver instance.
* Sample usage:
*
* $driver->wait(20, 1000)->until(
* WebDriverExpectedCondition::titleIs('WebDriver Page')
* );
*
* @param int $timeout_in_second
* @param int $interval_in_millisecond
* @return WebDriverWait
*/
public
function
wait
(
$
timeout_in_second
=
30
,
$
interval_in_millisecond
=
250
);
/**
* An abstraction for managing stuff you would do in a browser menu. For
* example, adding and deleting cookies.
*
* @return WebDriverOptions
*/
public
function
manage
();
/**
* An abstraction allowing the driver to access the browser's history and to
* navigate to a given URL.
*
* @return WebDriverNavigationInterface
* @see WebDriverNavigation
*/
public
function
navigate
();
/**
* Switch to a different window or frame.
*
* @return WebDriverTargetLocator
* @see WebDriverTargetLocator
*/
public
function
switchTo
();
// TODO: Add in next major release (BC)
///**
// * @return WebDriverTouchScreen
// */
//public function getTouch();
/**
* @param string $name
* @param array $params
* @return mixed
*/
public
function
execute
(
$
name
,
$
params
);
// TODO: Add in next major release (BC)
///**
// * Execute custom commands on remote end.
// * For example vendor-specific commands or other commands not implemented by php-webdriver.
// *
// * @see https://github.com/php-webdriver/php-webdriver/wiki/Custom-commands
// * @param string $endpointUrl
// * @param string $method
// * @param array $params
// * @return mixed|null
// */
//public function executeCustomCommand($endpointUrl, $method = 'GET', $params = []);
}
Back
|
FazBrowse Home
|
New Git URL