Interface SupportsEnvironmentOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, 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 final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the application environment variables mapping.
    default T
    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 io.appium.java_client.remote.options.CanSetCapability

    amend, setCapability

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • setEnvironment

      default T setEnvironment(Map<String,String> env)
      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:
      env - E.g. ["--help"].
      Returns:
      self instance for chaining.
    • getEnvironment

      default Optional<Map<String,String>> getEnvironment()
      Get the application environment variables mapping.
      Returns:
      Application environment mapping.