Class ColorPickerPreviewElement

  • 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 ColorPickerPreviewElement
    extends CssLayoutElement
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getColorFieldContainsErrors()
      Get whether TextField in ColorPickerPreview has validation errors.
      String getColorFieldValue()
      Get the value of the input element TextField in ColorPickerPreview.
      org.openqa.selenium.WebElement getColorTextField()  
      void setColorTextFieldValue​(String value)
      Set value of TextField in ColorPickerPreview.
      • Methods inherited from class com.vaadin.testbench.TestBenchElement

        clear, click, 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
      • Methods inherited from interface org.openqa.selenium.WebElement

        getDomProperty
    • Constructor Detail

      • ColorPickerPreviewElement

        public ColorPickerPreviewElement()
    • Method Detail

      • getColorFieldContainsErrors

        public boolean getColorFieldContainsErrors()
        Get whether TextField in ColorPickerPreview has validation errors.
        Returns:
        true if field has errors, false otherwise
        Since:
        8.4
      • getColorFieldValue

        public String getColorFieldValue()
        Get the value of the input element TextField in ColorPickerPreview.
        Returns:
        the value of the attribute 'value' of the input element
        Since:
        8.4
      • setColorTextFieldValue

        public void setColorTextFieldValue​(String value)
        Set value of TextField in ColorPickerPreview. Any existing value in the field is replaced.
        Parameters:
        value - text to insert
        Since:
        8.4
      • getColorTextField

        public org.openqa.selenium.WebElement getColorTextField()
        Returns:
        WebElement representing TextField in ColorPickerPreviewComponent
        Since:
        8.4