FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-webdriver/lib/WebDriverRadios.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
/
WebDriverRadios.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
52 lines (42 loc) · 1.35 KB
Breadcrumbs
php-webdriver
/
lib
/
WebDriverRadios.php
Copy path
File metadata and controls
52 lines (42 loc) · 1.35 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
<?php
namespace
Facebook
\
WebDriver
;
use
Facebook
\
WebDriver
\
Exception
\
InvalidElementStateException
;
use
Facebook
\
WebDriver
\
Exception
\
UnsupportedOperationException
;
/**
* Provides helper methods for radio buttons.
*/
class
WebDriverRadios
extends
AbstractWebDriverCheckboxOrRadio
{
public
function
__construct
(
WebDriverElement
$
element
)
{
parent
::
__construct
(
$
element
);
$
this
->
type
=
$
element
->
getAttribute
(
'
type
'
);
if
(
$
this
->
type
!==
'
radio
'
) {
throw
new
InvalidElementStateException
(
'
The input must be of type "radio".
'
);
}
}
public
function
isMultiple
()
{
return
false
;
}
public
function
deselectAll
()
{
throw
new
UnsupportedOperationException
(
'
You cannot deselect radio buttons
'
);
}
public
function
deselectByIndex
(
$
index
)
{
throw
new
UnsupportedOperationException
(
'
You cannot deselect radio buttons
'
);
}
public
function
deselectByValue
(
$
value
)
{
throw
new
UnsupportedOperationException
(
'
You cannot deselect radio buttons
'
);
}
public
function
deselectByVisibleText
(
$
text
)
{
throw
new
UnsupportedOperationException
(
'
You cannot deselect radio buttons
'
);
}
public
function
deselectByVisiblePartialText
(
$
text
)
{
throw
new
UnsupportedOperationException
(
'
You cannot deselect radio buttons
'
);
}
}
Back
|
FazBrowse Home
|
New Git URL