WebDriverRadios
class WebDriverRadios extends AbstractWebDriverCheckboxOrRadio (View source)
Provides helper methods for radio buttons.
Properties
| protected WebDriverElement | $element | from AbstractWebDriverCheckboxOrRadio | |
| protected string | $type | from AbstractWebDriverCheckboxOrRadio | |
| protected string | $name | from AbstractWebDriverCheckboxOrRadio | 
Methods
Select the option at the given index.
Select all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:
Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:
Select all options that display text partially matching the argument. That is, when given "Bar" this would select an option like:
Selects or deselects a checkbox or a radio button by its value.
Selects or deselects a checkbox or a radio button by its index.
Selects or deselects a checkbox or a radio button by its visible text.
Gets checkboxes or radio buttons with the same name.
No description
Deselect all options in multiple select tag.
Deselect the option at the given index.
Deselect all options that have value attribute matching the argument. That is, when given "foo" this would deselect an option like:
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
Details
        
                            
    __construct(WebDriverElement $element)
        
    
    No description
        
                            WebDriverElement[]
    getOptions()
        
    
    No description
        
                            WebDriverElement[]
    getAllSelectedOptions()
        
    
    No description
        
                            WebDriverElement
    getFirstSelectedOption()
        
    
    No description
        
                            
    selectByIndex(int $index)
        
    
    Select the option at the given index.
        
                            
    selectByValue(string $value)
        
    
    Select all options that have value attribute matching the argument. That is, when given "foo" this would select an option like:
<option value="foo">Bar</option>
        
                            
    selectByVisibleText(string $text)
        
    
    Select all options that display text matching the argument. That is, when given "Bar" this would select an option like:
<option value="foo">Bar</option>
        
                            
    selectByVisiblePartialText(string $text)
        
    
    Select all options that display text partially matching the argument. That is, when given "Bar" this would select an option like:
<option value="bar">Foo Bar Baz</option>
        
                    protected        
    byValue(string $value, bool $select = true)
        
    
    Selects or deselects a checkbox or a radio button by its value.
        
                    protected        
    byIndex(int $index, bool $select = true)
        
    
    Selects or deselects a checkbox or a radio button by its index.
        
                    protected        
    byVisibleText(string $text, bool $partial = false, bool $select = true)
        
    
    Selects or deselects a checkbox or a radio button by its visible text.
        
                    protected        WebDriverElement[]
    getRelatedElements(string|null $value = null)
        
    
    Gets checkboxes or radio buttons with the same name.
        
                    protected        
    selectOption(WebDriverElement $element)
        
    
    Selects a checkbox or a radio button.
        
                    protected        
    deselectOption(WebDriverElement $element)
        
    
    Deselects a checkbox or a radio button.
        
                            bool
    isMultiple()
        
    
    No description
        
                            
    deselectAll()
        
    
    Deselect all options in multiple select tag.
        
                            
    deselectByIndex(int $index)
        
    
    Deselect the option at the given index.
        
                            
    deselectByValue(string $value)
        
    
    Deselect all options that have value attribute matching the argument. That is, when given "foo" this would deselect an option like:
<option value="foo">Bar</option>
        
                            
    deselectByVisibleText(string $text)
        
    
    Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
<option value="foo">Bar</option>
        
                            
    deselectByVisiblePartialText(string $text)
        
    
    Deselect all options that display text matching the argument. That is, when given "Bar" this would deselect an option like:
<option value="foo">Foo Bar Baz</option>