Run iOS App in Background and Wait

Hi there,

I’m looking to use the ‘run iOS app in background’ method for running or testing multiple applications simultaneously, but I am encountering this error:

FAILED because (of) Cannot run iOS app in background (Root cause: org.openqa.selenium.WebDriverException: Method is not implemented (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 0 milliseconds

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: '2017-11-06T21:07:36.161Z

This is how I’m using the method:

Mobile.runIOSAppInBackgroundAndWait(10, FailureHandling.STOP_ON_FAILURE)

Has anyone been able to use this successfully?

For anyone else who also would like to use this functionality - a workaround I found is to capture the driver and use the appium command for running in background :

AppiumDriver<?> driver = MobileDriverFactory.getDriver()

driver.runAppInBackground(Duration.ofSeconds(10))

Hi @Micaela_Connors I am using the same but still its giving me error for Android : org.openqa.selenium.WebDriverException: Method is not implemented (WARNING: The server did not provide any stacktrace information)