Interface ComponentConfig

All Known Implementing Classes:
DefaultComponentConfig

public interface ComponentConfig
SPI interface for JComponents factory. Implement this interface in your project and create META-INF/services/io.jmix.masquerade.config.ComponentConfig in your classpath with FQN of your implementation.

For example:


 public class CustomComponentConfig implements ComponentConfig {

     @Override
     public Map<Class<?>, Function<By, ?>> getComponents() {
         return Map.of(Untyped.class, Untyped::new);
     }
 }</code></pre>
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<Class<?>,Function<org.openqa.selenium.By,?>>
     
  • Method Details

    • getComponents

      Map<Class<?>,Function<org.openqa.selenium.By,?>> getComponents()
      Returns:
      Map of components class to the components constructor with the By parameter