Interface SupportsClearDeviceLogsOnStartOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default T clearDeviceLogsOnStart()
      Makes UiAutomator2 to delete all the existing logs in the device buffer before starting a new test.
      default java.util.Optional<java.lang.Boolean> doesClearDeviceLogsOnStart()
      Get whether to delete all the existing logs in the device buffer before starting a new test.
      default T setClearDeviceLogsOnStart​(boolean value)
      If set to true then UiAutomator2 deletes all the existing logs in the device buffer before starting a new test.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • CLEAR_DEVICE_LOGS_ON_START_OPTION

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

      • clearDeviceLogsOnStart

        default T clearDeviceLogsOnStart()
        Makes UiAutomator2 to delete all the existing logs in the device buffer before starting a new test.
        Returns:
        self instance for chaining.
      • setClearDeviceLogsOnStart

        default T setClearDeviceLogsOnStart​(boolean value)
        If set to true then UiAutomator2 deletes all the existing logs in the device buffer before starting a new test.
        Parameters:
        value - Set to false if you don't want to wait for the app to finish its launch.
        Returns:
        self instance for chaining.
      • doesClearDeviceLogsOnStart

        default java.util.Optional<java.lang.Boolean> doesClearDeviceLogsOnStart()
        Get whether to delete all the existing logs in the device buffer before starting a new test.
        Returns:
        True or false.