Interface SupportsSimulatorWindowCenterOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, Serializable
All Known Implementing Classes:
XCUITestOptions

public interface SupportsSimulatorWindowCenterOption<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
    default Optional<String>
    Get Simulator window center coordinates.
    default T
    Allows to explicitly set the coordinates of Simulator window center for Xcode9+ SDK.

    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

    • setSimulatorWindowCenter

      default T setSimulatorWindowCenter(String coordinates)
      Allows to explicitly set the coordinates of Simulator window center for Xcode9+ SDK. This capability only has an effect if Simulator window has not been opened yet for the current session before it started. e.g. "{-100.0,100.0}" or "{500,500}", spaces are not allowed
      Parameters:
      coordinates - Window center coordinates.
      Returns:
      self instance for chaining.
    • getSimulatorWindowCenter

      default Optional<String> getSimulatorWindowCenter()
      Get Simulator window center coordinates.
      Returns:
      Coordinates string.