Interface SupportsScaleFactorOption<T extends BaseOptions<T>>

    • Field Summary

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

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.String> getScaleFactor()
      Get Simulator scale factor.
      default T setScaleFactor​(java.lang.String scaleFactor)
      Simulator scale factor.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

    • Method Detail

      • setScaleFactor

        default T setScaleFactor​(java.lang.String scaleFactor)
        Simulator scale factor. This is useful to have if the default resolution of simulated device is greater than the actual display resolution. So you can scale the simulator to see the whole device screen without scrolling. Acceptable values for simulators running Xcode SDK 8 and older are: '1.0', '0.75', '0.5', '0.33' and '0.25', where '1.0' means 100% scale. For simulators running Xcode SDK 9 and above the value could be any valid positive float number.
        Parameters:
        scaleFactor - Scale factor value.
        Returns:
        self instance for chaining.
      • getScaleFactor

        default java.util.Optional<java.lang.String> getScaleFactor()
        Get Simulator scale factor.
        Returns:
        Scale factor value.