Class MapElement

  • All Implemented Interfaces:
    com.vaadin.testbench.commands.CanCompareScreenshots, com.vaadin.testbench.HasCallFunction, com.vaadin.testbench.HasDriver, com.vaadin.testbench.HasElementQuery, com.vaadin.testbench.HasPropertySettersGetters, 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 MapElement
    extends com.vaadin.testbench.TestBenchElement
    • Constructor Detail

      • MapElement

        public MapElement()
    • Method Detail

      • clickAtCoordinates

        public void clickAtCoordinates​(double x,
                                       double y)
        Performs a native click at the specified map coordinates. The method will convert the coordinates into pixel values, and perform a click on the map at the calculated pixel offset.
        Parameters:
        x -
        y -
      • getAttributionContainer

        public com.vaadin.testbench.TestBenchElement getAttributionContainer()
        Gets the attribution container div
        Returns:
        attribution container div
      • getAttributionItems

        public List<com.vaadin.testbench.TestBenchElement> getAttributionItems()
        Gets the list of attributions list items in the attribution container div
        Returns:
        list of list items
      • disableInteractions

        public void disableInteractions()
        Disables all interactions that could interfere with a test, such as double-click to zoom.