FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-webdriver/PHPWebDriver/WebDriverKeys.php at master · drupalmind/php-webdriver · GitHub
drupalmind
/
php-webdriver
Public
forked from
Element-34/php-webdriver
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
php-webdriver
/
PHPWebDriver
/
WebDriverKeys.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
90 lines (85 loc) · 2.27 KB
Breadcrumbs
php-webdriver
/
PHPWebDriver
/
WebDriverKeys.php
Copy path
File metadata and controls
90 lines (85 loc) · 2.27 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
<?php
class
PHPWebDriver_WebDriverKeys {
private
static
$
keys
=
array
(
'
NullKey
'
=>
"
\u
E000
"
,
'
CancelKey
'
=>
"
\u
E001
"
,
'
HelpKey
'
=>
"
\u
E002
"
,
'
BackspaceKey
'
=>
"
\u
E003
"
,
'
TabKey
'
=>
"
\u
E004
"
,
'
ClearKey
'
=>
"
\u
E005
"
,
'
ReturnKey
'
=>
"
\u
E006
"
,
'
EnterKey
'
=>
"
\u
E007
"
,
'
ShiftKey
'
=>
"
\u
E008
"
,
'
ControlKey
'
=>
"
\u
E009
"
,
'
AltKey
'
=>
"
\u
E00A
"
,
'
PauseKey
'
=>
"
\u
E00B
"
,
'
EscapeKey
'
=>
"
\u
E00C
"
,
'
SpaceKey
'
=>
"
\u
E00D
"
,
'
PageUpKey
'
=>
"
\u
E00E
"
,
'
PageDownKey
'
=>
"
\u
E00F
"
,
'
EndKey
'
=>
"
\u
E010
"
,
'
HomeKey
'
=>
"
\u
E011
"
,
'
LeftArrowKey
'
=>
"
\u
E012
"
,
'
UpArrowKey
'
=>
"
\u
E013
"
,
'
RightArrowKey
'
=>
"
\u
E014
"
,
'
DownArrowKey
'
=>
"
\u
E015
"
,
'
InsertKey
'
=>
"
\u
E016
"
,
'
DeleteKey
'
=>
"
\u
E017
"
,
'
SemicolonKey
'
=>
"
\u
E018
"
,
'
EqualsKey
'
=>
"
\u
E019
"
,
'
Numpad0Key
'
=>
"
\u
E01A
"
,
'
Numpad1Key
'
=>
"
\u
E01B
"
,
'
Numpad2Key
'
=>
"
\u
E01C
"
,
'
Numpad3Key
'
=>
"
\u
E01D
"
,
'
Numpad4Key
'
=>
"
\u
E01E
"
,
'
Numpad5Key
'
=>
"
\u
E01F
"
,
'
Numpad6Key
'
=>
"
\u
E020
"
,
'
Numpad7Key
'
=>
"
\u
E021
"
,
'
Numpad8Key
'
=>
"
\u
E022
"
,
'
Numpad9Key
'
=>
"
\u
E023
"
,
'
MultiplyKey
'
=>
"
\u
E024
"
,
'
AddKey
'
=>
"
\u
E025
"
,
'
SeparatorKey
'
=>
"
\u
E026
"
,
'
SubtractKey
'
=>
"
\u
E027
"
,
'
DecimalKey
'
=>
"
\u
E028
"
,
'
DivideKey
'
=>
"
\u
E029
"
,
'
F1Key
'
=>
"
\u
E031
"
,
'
F2Key
'
=>
"
\u
E032
"
,
'
F3Key
'
=>
"
\u
E033
"
,
'
F4Key
'
=>
"
\u
E034
"
,
'
F5Key
'
=>
"
\u
E035
"
,
'
F6Key
'
=>
"
\u
E036
"
,
'
F7Key
'
=>
"
\u
E037
"
,
'
F8Key
'
=>
"
\u
E038
"
,
'
F9Key
'
=>
"
\u
E039
"
,
'
F10Key
'
=>
"
\u
E03A
"
,
'
F11Key
'
=>
"
\u
E03B
"
,
'
F12Key
'
=>
"
\u
E03C
"
,
'
CommandKey
'
=>
"
\u
E03D
"
,
'
MetaKey
'
=>
"
\u
E03D
"
,
);
function
__construct
(
$
name
=
null
) {
if
(
$
name
) {
$
this
->
key
=
self
::
$
keys
[
$
name
];
}
}
function
__get
(
$
property
) {
switch
(
$
property
) {
case
"
key
"
:
return
json_decode
(
'
"
'
.
$
this
->
key
.
'
"
'
);
default
:
if
(
isset
(
$
property
)) {
return
$
this
->
$
property
;
}
}
}
public
static
function
__callStatic
(
$
name
,
$
arguments
) {
trigger_error
(
"
Use PHPWebDriver_WebDriverKeys('KeyName')
"
,
E_USER_DEPRECATED
);
if
(
isset
(
self
::
$
keys
[
$
name
])) {
return
json_decode
(
'
"
'
.
self
::
$
keys
[
$
name
] .
'
"
'
);
}
else
{
throw
new
Exception
(
"
Can't type key
$
name
"
);
}
}
}
?>
Back
|
FazBrowse Home
|
New Git URL