public class RadioButton extends AbstractElement implements Checkable
In this class, the method 'check' is encapsulated and invokes a SeLion session to do the check against the specified element. The method 'isChecked' is to verify whether this element is checked.
LOG_DEMARKER
Constructor and Description |
---|
RadioButton(ParentTraits parent,
String locator)
Use this constructor to create a RadioButton contained within a parent.
|
RadioButton(String locator)
RadioButton Construction method
Usage: |
RadioButton(String locator,
String controlName)
Use this constructor to override default controlName for logging purposes.
|
RadioButton(String locator,
String controlName,
ParentTraits parent)
Use this constructor to create a RadioButton contained within a parent.
|
Modifier and Type | Method and Description |
---|---|
void |
check()
The RadioButton check function
It invokes SeLion session to handle the check action against the element.
|
void |
click()
The RadioButton click function and wait for page to load
|
void |
click(String locator)
The RadioButton click function and wait for object to load
|
boolean |
isChecked()
The RadioButton isChecked function
It invokes SeLion session to handle the isChecked function against the element.
|
click, clickAndExpect, clickAndExpectOneOf, clickAndExpectOneOf, clickonly, getAttribute, getControlName, getDispatcher, getElement, getElements, getLocator, getParent, getProperty, getText, getValue, getWaitTime, hover, isElementPresent, isEnabled, isVisible, logUIAction, logUIActions, processScreenShot, resolveControlNameToUseForLogs, setParent, setProperty, validatePresenceOfAlert
public RadioButton(String locator)
private RadioButton rbnElement = new RadioButton("//Radio[@id='dummyElement']");
locator
- - A String that represents the means to locate this element (could be id/name/xpath/css locator).public RadioButton(String locator, String controlName)
locator
- - A String that represents the means to locate this element (could be id/name/xpath/css locator).controlName
- the control name used for loggingpublic RadioButton(ParentTraits parent, String locator)
parent
- - A ParentTraits
object that represents the parent element for this element.locator
- - A String that represents the means to locate this element (could be id/name/xpath/css locator).public RadioButton(String locator, String controlName, ParentTraits parent)
locator
- - A String that represents the means to locate this element (could be id/name/xpath/css locator).controlName
- the control name used for loggingparent
- - A ParentTraits
object that represents the parent element for this element.public void check()
public void click()
click
in class AbstractElement
public void click(String locator)
public boolean isChecked()
Copyright © 2016 PayPal Open Source. All rights reserved.