dlenroc / appium-roku-driver

WebDriver for testing channels / screensavers on roku devices
MIT License
10 stars 0 forks source link

fix: `background`/`suspended` app state detection #94

Closed dlenroc closed 4 weeks ago

dlenroc commented 4 weeks ago

Roku OS 13 introduced a new endpoint that allows determination of all necessary app states for sideloaded apps or those released using the same dev ID 🎉.

const state = await driver.queryAppState('dev');
// `0` is not installed.
// `1` is not running.
// `2` is running in background or suspended.
// `3` is running in background.
// `4` is running in foreground.