Class MapElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.map.testbench.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 Details

    • MapElement

      public MapElement()
  • Method Details

    • getMapReference

      public MapElement.MapReference getMapReference()
      Returns a MapElement.ConfigurationObjectReference wrapper for the OpenLayers map instance. Used to access nested configuration objects in the browser and extract values from them to be used for assertions.
    • 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.