Class FormItemElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.formlayout.testbench.FormItemElement
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 FormItemElement extends TestBenchElement
A TestBench element representing a <vaadin-form-item> element.
  • Constructor Details

    • FormItemElement

      public FormItemElement()
  • Method Details

    • getLabel

      public TestBenchElement getLabel()
      Gets the label element from the label slot.
      Returns:
      the label element as a TestBenchElement or null if the form item contains no label.
    • getLabelText

      public String getLabelText()
      Gets the text of the label element.
      Returns:
      the text of the label element or null if the form item contains no label.
    • getField

      public TestBenchElement getField()
      Gets the field element.
      Returns:
      the field element as a TestBenchElement or null if the form item contains no field.