public abstract class SeleniumCheckableGroupInputWebElement extends SeleniumGroupInputWebElement
WRAPPER_ELEMENT| Constructor and Description |
|---|
SeleniumCheckableGroupInputWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Create a SeleniumGroupInputWebElement instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
click(int idx)
Click an option based on its index.
|
void |
click(String labelText)
Click an option labelled by a given string.
|
void |
click(org.openqa.selenium.WebElement option)
Clicks an option's input.
|
void |
clickNoWait(int idx)
Click an option based on its index.
|
void |
clickNoWait(String labelText)
Click an option labelled by a given string.
|
void |
clickNoWait(org.openqa.selenium.WebElement option)
Clicks an option's input.
|
org.openqa.selenium.WebElement |
getInput(int idx)
Get the active control from an option.
|
org.openqa.selenium.WebElement |
getInput(String labelText)
Get the interactive HTML control with a given label.
|
org.openqa.selenium.WebElement |
getInput(org.openqa.selenium.WebElement option)
Get the input control belonging to a particular option in the group.
|
org.openqa.selenium.WebElement |
getOption(int idx)
Get an option using an index.
|
org.openqa.selenium.WebElement |
getOption(String labelText)
Find an option with a particular label.
|
List<org.openqa.selenium.WebElement> |
getOptions() |
List<org.openqa.selenium.WebElement> |
getSelected()
Get the selected options.
|
boolean |
isEnabled() |
boolean |
isSelected(int idx) |
boolean |
isSelected(String labelText) |
boolean |
isSelected(org.openqa.selenium.WebElement option) |
void |
select(int idx)
Select the option which at a given index.
|
void |
select(String text)
Select the option which is labelled by a given piece of text.
|
void |
select(org.openqa.selenium.WebElement option)
Select an option.
|
isMandatory, isReadOnlyclear, click, clickElementNoWait, clickNoWait, findElement, findElementImmediate, findElements, findElementsImmediate, getActiveId, getAttribute, getCssValue, getDriver, getElement, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getUserContextForSession, isDisplayed, isHidden, isSelected, sendKeys, sendKeys, submit, waitForPageReady, wrapElementpublic SeleniumCheckableGroupInputWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - the base WebElementdriver - the current Selenium driverpublic List<org.openqa.selenium.WebElement> getOptions()
public org.openqa.selenium.WebElement getOption(int idx)
idx - the index of the option to getpublic org.openqa.selenium.WebElement getOption(String labelText)
labelText - the text content of the option's labelpublic org.openqa.selenium.WebElement getInput(int idx)
idx - the option indexpublic org.openqa.selenium.WebElement getInput(String labelText)
labelText - the text of the label for the option we are afterpublic org.openqa.selenium.WebElement getInput(org.openqa.selenium.WebElement option)
option - the option we are trying to interact withpublic List<org.openqa.selenium.WebElement> getSelected()
public boolean isSelected(org.openqa.selenium.WebElement option)
option - the WebElement representing an option in the component.true if the input in option is selected or if option exists and the component is read-only.public boolean isSelected(int idx)
idx - the option indextrue if the option is selected or, if the component is in a read-only state, if option merely
existspublic boolean isSelected(String labelText)
labelText - the label text for the optiontrue if the option is selected or, if the component is in a read-only state, if the option existspublic void select(org.openqa.selenium.WebElement option)
option - the option to selectpublic void select(String text)
text - the option's label.public void select(int idx)
idx - the option index.public void click(org.openqa.selenium.WebElement option)
option - the option to clickpublic void click(String labelText)
labelText - the label text of the option to clickpublic void click(int idx)
idx - the index of the option to clickpublic void clickNoWait(org.openqa.selenium.WebElement option)
Clicks with no wait.
option - the option to clickpublic void clickNoWait(String labelText)
Clicks with no wait.
labelText - the label text of the option to clickpublic void clickNoWait(int idx)
Clicks with no wait.
idx - the index of the option to clickpublic boolean isEnabled()
SeleniumWComponentWebElementisEnabled in interface org.openqa.selenium.WebElementisEnabled in class SeleniumWComponentWebElementCopyright © 2024. All rights reserved.