Interface SupportsEnvironmentOption<T extends BaseOptions<T>>

  • All Superinterfaces:
    CanSetCapability<T>, org.openqa.selenium.Capabilities, java.io.Serializable
    All Known Implementing Classes:
    Mac2Options

    public interface SupportsEnvironmentOption<T extends BaseOptions<T>>
    extends org.openqa.selenium.Capabilities, CanSetCapability<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENVIRONMENT_OPTION  
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.util.List<java.lang.String>> getEnvironment()
      Get the application environment variables mapping.
      default T setEnvironment​(java.util.List<java.lang.String> arguments)
      A dictionary of environment variables (name->value) that are going to be passed to the application under test on top of environment variables inherited from the parent process.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

    • Method Detail

      • setEnvironment

        default T setEnvironment​(java.util.List<java.lang.String> arguments)
        A dictionary of environment variables (name->value) that are going to be passed to the application under test on top of environment variables inherited from the parent process. This capability is only going to be applied if the application is not running on session startup.
        Parameters:
        arguments - E.g. ["--help"].
        Returns:
        self instance for chaining.
      • getEnvironment

        default java.util.Optional<java.util.List<java.lang.String>> getEnvironment()
        Get the application environment variables mapping.
        Returns:
        Application environment mapping.