Class NeoToggleField
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoToggleField
public class NeoToggleField extends NeoComponent
Represents an instance of the Toggle field
on the NEO UI
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
protected org.openqa.selenium.WebElement
togglebutton
protected org.openqa.selenium.WebElement
toggleElement
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoToggleField(NeoUIContext context)
NeoToggleField(NeoUIContext context, org.openqa.selenium.WebElement element)
-
Method Summary
Modifier and Type Method Description boolean
getValue()
Used to get the Value("true", or "false") of the toggle buttonboolean
isDisplayed()
This method returns boolean value("true", or "false") based on the toggle button is displaying or notvoid
off()
Used to put toggle Off on the Neo UI screenvoid
on()
Used to put toggle ON on the Neo UI screenMethods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, setMultipleValues, setValue
-
Field Details
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
toggleElement
protected org.openqa.selenium.WebElement toggleElement -
togglebutton
protected org.openqa.selenium.WebElement togglebutton
-
-
Constructor Details
-
NeoToggleField
- Parameters:
context
-element
-
-
NeoToggleField
-
-
Method Details
-
on
public void on()Used to put toggle ON on the Neo UI screen -
off
public void off()Used to put toggle Off on the Neo UI screen -
getValue
public boolean getValue()Used to get the Value("true", or "false") of the toggle button -
isDisplayed
public boolean isDisplayed()This method returns boolean value("true", or "false") based on the toggle button is displaying or not- Overrides:
isDisplayed
in classNeoComponent
-