Class CheckBoxGroupElement

  • 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 CheckBoxGroupElement
    extends AbstractSelectElement
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear operation is not supported for Option Group.
      List<org.openqa.selenium.WebElement> getOptionElements()
      Gets the list of option elements for this check box group.
      List<String> getOptions()  
      List<String> getValue()
      Return list of the selected options in the checkbox group.
      void selectByText​(String text)  
      void setValue​(String... options)
      Sets the selected options for this checkbox group.
      void setValue​(List<String> options)
      Sets the selected options for this checkbox group.
      • Methods inherited from class com.vaadin.testbench.TestBenchElement

        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

      • CheckBoxGroupElement

        public CheckBoxGroupElement()
    • Method Detail

      • getOptionElements

        public List<org.openqa.selenium.WebElement> getOptionElements()
        Gets the list of option elements for this check box group.
        Returns:
        list of option elements
      • getValue

        public List<String> getValue()
        Return list of the selected options in the checkbox group.
        Returns:
        list of the selected options in the checkbox group
      • setValue

        public void setValue​(String... options)
        Sets the selected options for this checkbox group.
        Parameters:
        options - the options to select
        See Also:
        getValue(), setValue(List)
      • setValue

        public void setValue​(List<String> options)
        Sets the selected options for this checkbox group.
        Parameters:
        options - the list of options to select
        See Also:
        getValue(), setValue(String...)
      • clear

        public void clear()
        Clear operation is not supported for Option Group. This operation has no effect on Option Group element.
        Specified by:
        clear in interface org.openqa.selenium.WebElement
        Overrides:
        clear in class AbstractSelectElement