Interface SupportsSimulatorWindowCenterOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.String> getSimulatorWindowCenter()
      Get Simulator window center coordinates.
      default T setSimulatorWindowCenter​(java.lang.String coordinates)
      Allows to explicitly set the coordinates of Simulator window center for Xcode9+ SDK.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • SIMULATOR_WINDOW_CENTER_OPTION

        static final java.lang.String SIMULATOR_WINDOW_CENTER_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • setSimulatorWindowCenter

        default T setSimulatorWindowCenter​(java.lang.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 java.util.Optional<java.lang.String> getSimulatorWindowCenter()
        Get Simulator window center coordinates.
        Returns:
        Coordinates string.