com.vaadin.flow.component.details.testbench.
Class DetailsElement
- java.lang.Object
-
- com.vaadin.testbench.TestBenchElement
-
- com.vaadin.flow.component.details.testbench.DetailsElement
-
All Implemented Interfaces:
CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, org.openqa.selenium.internal.WrapsElement, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement
Direct Known Subclasses:
public class DetailsElement extends TestBenchElement
-
-
Constructor Summary
Constructors Constructor and Description DetailsElement()
-
Method Summary
All Methods Modifier and Type Method and Description TestBenchElement
getContent()
Returns content element
TestBenchElement
getSummary()
Returns summary element
String
getSummaryText()
Returns summary element as string
TestBenchElement
getSummaryWrapper()
Returns a wrapper of the summary component
boolean
isEnabled()
Whether the component is enabled or not
boolean
isOpened()
Whether the details are opened or not
void
toggle()
Expands or collapses the details
-
Methods inherited from class com.vaadin.testbench.TestBenchElement
callFunction, clear, click, click, compareScreen, compareScreen, compareScreen, contextClick, dispatchEvent, doubleClick, equals, executeScript, findElement, findElements, focus, getAttribute, getCapabilities, getClassNames, getCommandExecutor, getContext, getCssValue, getDriver, getLocation, getProperty, getPropertyBoolean, getPropertyDouble, getPropertyElement, getPropertyElements, getPropertyInteger, getPropertyString, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, hasAttribute, hasClassName, hashCode, init, init, isChrome, isDisplayed, isFirefox, isIE, isSelected, scroll, scrollIntoView, scrollLeft, sendKeys, setProperty, setProperty, setProperty, setProperty, submit, waitForVaadin, waitUntil, waitUntil, wrap, wrapElement, wrapElements
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.testbench.HasElementQuery
$, $
-
-
-
-
Method Detail
-
getSummary
public TestBenchElement getSummary()
Returns summary element
-
getSummaryText
public String getSummaryText()
Returns summary element as string
-
getContent
public TestBenchElement getContent()
Returns content element
-
isOpened
public boolean isOpened()
Whether the details are opened or not
-
isEnabled
public boolean isEnabled()
Whether the component is enabled or not
Specified by:
isEnabled
in interfaceorg.openqa.selenium.WebElement
Overrides:
isEnabled
in classTestBenchElement
Returns:
true if the component is enabled.
-
getSummaryWrapper
public TestBenchElement getSummaryWrapper()
Returns a wrapper of the summary component
-
toggle
public void toggle()
Expands or collapses the details
-
-