(
session: SessionState,
appBundleId: string,
options: { requireNoBlockingDialog?: boolean },
)
| 332 | } |
| 333 | |
| 334 | async function isAndroidAppFocused( |
| 335 | session: SessionState, |
| 336 | appBundleId: string, |
| 337 | options: { requireNoBlockingDialog?: boolean }, |
| 338 | ): Promise<boolean> { |
| 339 | if (options.requireNoBlockingDialog && (await getAndroidBlockingDialogFocus(session.device))) { |
| 340 | return false; |
| 341 | } |
| 342 | const state = await getAndroidAppState(session.device); |
| 343 | return state.package === appBundleId; |
| 344 | } |
| 345 | |
| 346 | function readNodeText(node: { |
| 347 | label?: string; |
no test coverage detected