public class BootstrapSwitch extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BootstrapSwitch.State
The different states the switch can have.
|
| Constructor and Description |
|---|
BootstrapSwitch(org.openqa.selenium.WebElement webElement,
XWikiWebDriver driver)
Construct a bootstrap switch.
|
| Modifier and Type | Method and Description |
|---|---|
void |
click()
Click on the switch.
|
BootstrapSwitch.State |
getState() |
boolean |
isEnabled() |
void |
setState(BootstrapSwitch.State wantedState)
Set the state of the switch with the given value.
|
public BootstrapSwitch(org.openqa.selenium.WebElement webElement,
XWikiWebDriver driver)
webElement - the element the the wrapper will handledriver - the xwiki web driverpublic BootstrapSwitch.State getState()
public void click()
public void setState(BootstrapSwitch.State wantedState) throws Exception
wantedState - the expected stateException - if the expected state cannot be setpublic boolean isEnabled()
Copyright © 2004–2021 XWiki. All rights reserved.