Method: Appium::Core::Ios::Xcuitest::Device#background_app

Defined in:
lib/appium_lib_core/ios/xcuitest/device.rb

#background_app(duration = 0) ⇒ Object

Backgrounds the app for a set number of seconds. This is a blocking application.

Examples:


@driver.background_app
@driver.background_app(5)
@driver.background_app(-1) #=> the app never come back. https://github.com/appium/appium/issues/7741

Parameters:

  • duration (Integer) (defaults to: 0)

    How many seconds to background the app for.



# File 'lib/appium_lib_core/ios/xcuitest/device.rb', line 38