Package FlaNium.WinAPI.elements
Class ToggleButton
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebElement
-
- FlaNium.WinAPI.DesktopElement
-
- FlaNium.WinAPI.elements.ToggleButton
-
- All Implemented Interfaces:
org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver
- Direct Known Subclasses:
CheckBox
public class ToggleButton extends DesktopElement
-
-
Constructor Summary
Constructors Constructor Description ToggleButton(org.openqa.selenium.WebElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ToggleStategetToggleState()Gets the current toggle state.voidsetToggleState(ToggleState toggleState)Sets the current toggle state.voidtoggle()Toggles the toggle button.-
Methods inherited from class FlaNium.WinAPI.DesktopElement
callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callVoidCommand, castTo, createLocalDateTimeFromResponse, createRemoteWebElementFromResponse, createRemoteWebElementsFromResponse, exe, execute, getActiveWindow, getAttribute, getElementRect, getName, mouseActions, parseDateTime, parseDouble, screenshotActions, setAsRootElement, toCoordinateElement, touchActions
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebElement
clear, click, equals, execute, findElement, findElement, findElements, findElements, getAccessibleName, getAriaRole, getCoordinates, getCssValue, getDomAttribute, getDomProperty, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getText, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, setId, setParent, submit, toJson, toString
-
-
-
-
Method Detail
-
toggle
public void toggle()
Toggles the toggle button. Note: In some WPF scenarios, the bounded command might not be fired. Use "AutomationElement.Click" instead in that case.
-
getToggleState
public ToggleState getToggleState()
Gets the current toggle state.- Returns:
-
setToggleState
public void setToggleState(ToggleState toggleState)
Sets the current toggle state.
-
-