runAppInBackground() is not working in 1.6.4-beta

driver.runAppInBackground(seconds) is not working in 1.6.4-beta on iOS 10. The app closes and then nothing happens. This used to work atleast in 1.6.0 or maybe in 1.5.3. Has anyone come across this issue?

Java client: 4.1.2

Eclipse log:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 “Failed to find scrollable visible parent with 2 visible children” UserInfo={NSLocalizedDescription=Failed to find scrollable visible parent with 2 visible children} (WARNING: The server did not provide any stacktrace information)

Appium log:
[debug] [JSONWP Proxy] Got response with status 200: {“value”:“Error Domain=com.facebook.WebDriverAgent Code=1 “Failed to find scrollable visible parent with 2 visible children” UserInfo={NSLocalizedDescription=Failed to find scrollable visible parent with 2 visible children}”,“sessionId”:“75FFD2A0-796E-4B5F-9E1F-E6100CC66AA9”,“status”:13}
[HTTP] <-- POST /wd/hub/session/3379ba96-9816-4db6-8812-90f89b61e140/appium/app/background 500

1 Like

Looks like a fix for this went in 2 days ago:

You are using Java Client 4.1.2, which is from last August:

If you want to try it out, you’ll probably need to pull from Master branch. The latest release is 5.0.0-Beta5, but that’s from 14 days ago (as of this writing):

If you can’t pull from Master then you should monitor for the next beta release or just wait for Java Client 5.0.0.

1 Like

Thank you @wreed for letting me know that.