AbstractWebDriverCheckboxOrRadio
abstract class AbstractWebDriverCheckboxOrRadio implements WebDriverSelectInterface (View source)
Provides helper methods for checkboxes and radio buttons.
Properties
| protected WebDriverElement | $element | ||
| protected string | $type | ||
| protected string | $name | 
Methods
No description
No description
No description
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.
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.