Package com.vaadin.testbench.elements
Class CheckBoxElement
- java.lang.Object
-
- com.vaadin.testbench.AbstractHasTestBenchCommandExecutor
-
- com.vaadin.testbench.TestBenchElement
-
- com.vaadin.testbench.elementsbase.AbstractElement
-
- com.vaadin.testbench.elements.AbstractComponentElement
-
- com.vaadin.testbench.elements.AbstractFieldElement
-
- com.vaadin.testbench.elements.CheckBoxElement
-
- All Implemented Interfaces:
com.vaadin.testbench.commands.CanCompareScreenshots,com.vaadin.testbench.commands.CanWaitForVaadin,com.vaadin.testbench.commands.TestBenchElementCommands,com.vaadin.testbench.HasDriver,com.vaadin.testbench.HasSearchContext,com.vaadin.testbench.HasTestBenchCommandExecutor,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
public class CheckBoxElement extends AbstractFieldElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.testbench.elements.AbstractComponentElement
AbstractComponentElement.ReadOnlyException
-
-
Constructor Summary
Constructors Constructor Description CheckBoxElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the check box, setting unchecked value.voidclick()StringgetCaption()Returns the caption of the Component element.org.openqa.selenium.WebElementgetInputElement()Gets the <input> element of the checkbox.StringgetValue()Return string representation of value of the checkbox Return either checked or unchecked.booleanisChecked()Checks if the checkbox is checked.-
Methods inherited from class com.vaadin.testbench.elements.AbstractFieldElement
clearElementClientSide, clientSelectElement
-
Methods inherited from class com.vaadin.testbench.elements.AbstractComponentElement
getHTML, getStyleAttribute, isReadOnly
-
Methods inherited from class com.vaadin.testbench.TestBenchElement
click, clickHiddenElement, compareScreen, compareScreen, compareScreen, contextClick, doubleClick, equals, findElement, findElements, focus, getAccessibleName, getAriaRole, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDomAttribute, getDriver, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isEnabled, isFirefox, isFocused, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, showTooltip, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElements
-
Methods inherited from class com.vaadin.testbench.AbstractHasTestBenchCommandExecutor
$, $$, isElementPresent, isElementPresent
-
-
-
-
Method Detail
-
getValue
public String getValue()
Return string representation of value of the checkbox Return either checked or unchecked.
-
isChecked
public boolean isChecked()
Checks if the checkbox is checked.- Returns:
trueif the checkbox is checked,falseotherwise.
-
clear
public void clear()
Clears the check box, setting unchecked value. The check box is unchecked by sending a click event on it.- Specified by:
clearin interfaceorg.openqa.selenium.WebElement- Overrides:
clearin classcom.vaadin.testbench.TestBenchElement
-
getCaption
public String getCaption()
Description copied from class:AbstractComponentElementReturns the caption of the Component element.- Overrides:
getCaptionin classAbstractComponentElement- Returns:
- component caption
-
click
public void click()
- Specified by:
clickin interfaceorg.openqa.selenium.WebElement- Overrides:
clickin classcom.vaadin.testbench.TestBenchElement
-
getInputElement
public org.openqa.selenium.WebElement getInputElement()
Gets the <input> element of the checkbox.- Returns:
- the input element
-
-