com.vaadin.flow.component.dashboard.testbench.

Class DashboardWidgetElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.dashboard.testbench.DashboardWidgetElement

All Implemented Interfaces:

CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class DashboardWidgetElement extends TestBenchElement

Author:

Vaadin Ltd

  • Constructor Details

    • DashboardWidgetElement

      public DashboardWidgetElement()
  • Method Details

    • getTitle

      public String getTitle()

      Returns the title of the widget.

      Returns:

      the widgetTitle property from the web component

    • getColspan

      public Integer getColspan()

      Returns the colspan of the widget.

      Returns:

      the --vaadin-dashboard-item-colspan computed style from the web component

    • getRowspan

      public Integer getRowspan()

      Returns the rowspan of the widget.

      Returns:

      the --vaadin-dashboard-item-rowspan computed style from the web component

    • getContent

      public TestBenchElement getContent()

      Returns the content of the widget.

      Returns:

      the content element set to the widget

    • getHeader

      public TestBenchElement getHeader()

      Returns the header of the widget.

      Returns:

      the header element set to the widget