Package uk.co.evoco.webdriver.utils
Class RadioButtonUtils
- java.lang.Object
- 
- uk.co.evoco.webdriver.utils.TolerantInteraction
- 
- uk.co.evoco.webdriver.utils.RadioButtonUtils
 
 
- 
 public final class RadioButtonUtils extends TolerantInteraction Utility methods to select radio buttons
- 
- 
Constructor SummaryConstructors Constructor Description RadioButtonUtils()
 - 
Method SummaryModifier and Type Method Description static voidselectByLabel(List<org.openqa.selenium.WebElement> webElements, String visibleLabelText)Given a list of WebElements that locate the labels of the radio buttons, finds the radio button with the given visible label text and selects it.static voidtolerantSelectByLabel(List<org.openqa.selenium.WebElement> webElements, String visibleLabelText)static voidtolerantSelectByLabel(List<org.openqa.selenium.WebElement> webElements, String visibleLabelText, int timeout)- 
Methods inherited from class uk.co.evoco.webdriver.utils.TolerantInteractiontolerantInteraction, tolerantInteraction, tolerantInteraction
 
- 
 
- 
- 
- 
Method Detail- 
selectByLabelpublic static void selectByLabel(List<org.openqa.selenium.WebElement> webElements, String visibleLabelText) Given a list of WebElements that locate the labels of the radio buttons, finds the radio button with the given visible label text and selects it.- Parameters:
- webElements- active WebElements, already located
- visibleLabelText- text that is visible on the page in the label tags
 
 - 
tolerantSelectByLabelpublic static void tolerantSelectByLabel(List<org.openqa.selenium.WebElement> webElements, String visibleLabelText, int timeout) throws Throwable - Parameters:
- webElements- active WebElements, already located
- visibleLabelText- text that is visible on the page in the label tags
- timeout- time in seconds to keep trying
- Throws:
- Throwable- any unhandled or un-tolerated exception
 
 - 
tolerantSelectByLabelpublic static void tolerantSelectByLabel(List<org.openqa.selenium.WebElement> webElements, String visibleLabelText) throws Throwable - Parameters:
- webElements- active WebElements, already located
- visibleLabelText- text that is visible on the page in the label tags
- Throws:
- Throwable- any unhandled or un-tolerated exception
 
 
- 
 
-