// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`getContexts test > should return the all app data for Android if isAndroidWebviewVisible is set to false 1`] = ` [ { "id": "NATIVE_APP", }, { "id": "WEBVIEW_com.wdiodemoapp", "packageName": "com.wdiodemoapp", "title": "WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO", "url": "https://webdriver.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, { "id": "WEBVIEW_com.wdiodemoapp", "packageName": "com.wdiodemoapp", "title": "Service Worker https://webdriver.io/sw.js?params=%7B%22offlineMode%22%3Afalse%2C%22debug%22%3Afalse%7D", "url": "https://webdriver.io/sw.js?params=%7B%22offlineMode%22%3Afalse%2C%22debug%22%3Afalse%7D", "webviewPageId": "BB0EE977F0C88F5DF6E50F902A855CDC", }, { "id": "WEBVIEW_com.otherApp", "packageName": "com.otherApp", "title": "Other Apps · I am just another app", "url": "https://otherapp.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, { "id": "WEBVIEW_com.otherNonVisibleApp", "packageName": "com.otherNonVisibleApp", "title": "Other Apps · I am just another app which is not visible", "url": "https://othernotvisibleapp.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, { "id": "WEBVIEW_chrome", "packageName": "com.android.chrome", "title": "Android | Get more done with Google on Android-phones and devices", "url": "https://www.android.com/", "webviewPageId": "0", }, { "id": "WEBVIEW_com.no.webviews", "packageName": "com.no.webviews", "title": "Empty Page", "url": "https://emptypage.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, ] `; exports[`getContexts test > should return the all app data for Android if isAndroidWebviewVisible is set to false and returnAndroidDescriptionData is set to true 1`] = ` [ { "id": "NATIVE_APP", }, { "androidWebviewData": { "attached": true, "empty": false, "height": 2682, "neverAttached": false, "screenX": 0, "screenY": 144, "visible": true, "width": 1440, }, "id": "WEBVIEW_com.wdiodemoapp", "packageName": "com.wdiodemoapp", "title": "WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO", "url": "https://webdriver.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, { "androidWebviewData": { "attached": false, "empty": false, "height": 0, "neverAttached": false, "screenX": 0, "screenY": 0, "visible": false, "width": 0, }, "id": "WEBVIEW_com.wdiodemoapp", "packageName": "com.wdiodemoapp", "title": "Service Worker https://webdriver.io/sw.js?params=%7B%22offlineMode%22%3Afalse%2C%22debug%22%3Afalse%7D", "url": "https://webdriver.io/sw.js?params=%7B%22offlineMode%22%3Afalse%2C%22debug%22%3Afalse%7D", "webviewPageId": "BB0EE977F0C88F5DF6E50F902A855CDC", }, { "androidWebviewData": { "attached": false, "empty": false, "height": 2682, "neverAttached": false, "screenX": 0, "screenY": 144, "visible": true, "width": 1440, }, "id": "WEBVIEW_com.otherApp", "packageName": "com.otherApp", "title": "Other Apps · I am just another app", "url": "https://otherapp.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, { "androidWebviewData": { "attached": true, "empty": false, "height": 2682, "neverAttached": false, "screenX": 0, "screenY": 144, "visible": false, "width": 1440, }, "id": "WEBVIEW_com.otherNonVisibleApp", "packageName": "com.otherNonVisibleApp", "title": "Other Apps · I am just another app which is not visible", "url": "https://othernotvisibleapp.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, { "androidWebviewData": { "attached": false, "empty": false, "height": 0, "neverAttached": false, "screenX": 0, "screenY": 0, "visible": false, "width": 0, }, "id": "WEBVIEW_chrome", "packageName": "com.android.chrome", "title": "Android | Get more done with Google on Android-phones and devices", "url": "https://www.android.com/", "webviewPageId": "0", }, { "androidWebviewData": { "attached": true, "empty": true, "height": 2682, "neverAttached": false, "screenX": 0, "screenY": 144, "visible": false, "width": 1440, }, "id": "WEBVIEW_com.no.webviews", "packageName": "com.no.webviews", "title": "Empty Page", "url": "https://emptypage.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, ] `; exports[`getContexts test > should return the current app data for Android if filterByCurrentAndroidApp is set to true 1`] = ` [ { "id": "NATIVE_APP", }, { "id": "WEBVIEW_com.wdiodemoapp", "packageName": "com.wdiodemoapp", "title": "WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO", "url": "https://webdriver.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, ] `; exports[`getContexts test > should return the description data for Android if returnAndroidDescriptionData is set to true 1`] = ` [ { "id": "NATIVE_APP", }, { "androidWebviewData": { "attached": true, "empty": false, "height": 2682, "neverAttached": false, "screenX": 0, "screenY": 144, "visible": true, "width": 1440, }, "id": "WEBVIEW_com.wdiodemoapp", "packageName": "com.wdiodemoapp", "title": "WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO", "url": "https://webdriver.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, ] `; exports[`getContexts test > should return the detailed contexts for Android if returnDetailedContexts is set to true 1`] = ` [ { "id": "NATIVE_APP", }, { "id": "WEBVIEW_com.wdiodemoapp", "packageName": "com.wdiodemoapp", "title": "WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO", "url": "https://webdriver.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, ] `; exports[`getContexts test > should return the visible app data for Android if isAndroidWebviewVisible is set to true 1`] = ` [ { "id": "NATIVE_APP", }, { "id": "WEBVIEW_com.wdiodemoapp", "packageName": "com.wdiodemoapp", "title": "WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO", "url": "https://webdriver.io/", "webviewPageId": "6751C1E052A63B0CA27F839216AEF4B8", }, ] `; exports[`getContexts test > should throw an error when the current app does not have any webviews 1`] = `[Error: The packageName 'com.no.webviews' matches, but no webview with pages was loaded in this response: [{"proc":"@webview_devtools_remote_29051","webview":"WEBVIEW_29051","info":{"Android-Package":"com.wdiodemoapp","Browser":"Chrome/113.0.5672.136","Protocol-Version":"1.3","User-Agent":"Mozilla/5.0 (Linux; Android 14; sdk_gphone64_arm64 Build/UE1A.230829.036; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/113.0.5672.136 Mobile Safari/537.36","V8-Version":"11.3.244.11","WebKit-Version":"537.36 (@2d54072eb2f350d37f3f304c4ba0fafcddbd7e82)","webSocketDebuggerUrl":"ws://127.0.0.1:10900/devtools/browser"},"pages":[{"description":"{\\"attached\\":true,\\"empty\\":false,\\"height\\":2682,\\"never_attached\\":false,\\"screenX\\":0,\\"screenY\\":144,\\"visible\\":true,\\"width\\":1440}","devtoolsFrontendUrl":"https://chrome-devtools-frontend.appspot.com/serve_internal_file/@2d54072eb2f350d37f3f304c4ba0fafcddbd7e82/inspector.html?ws=127.0.0.1:10900/devtools/page/6751C1E052A63B0CA27F839216AEF4B8","faviconUrl":"https://webdriver.io/img/favicon.png","id":"6751C1E052A63B0CA27F839216AEF4B8","title":"WebdriverIO · Next-gen browser and mobile automation test framework for Node.js | WebdriverIO","type":"page","url":"https://webdriver.io/","webSocketDebuggerUrl":"ws://127.0.0.1:10900/devtools/page/6751C1E052A63B0CA27F839216AEF4B8"},{"description":"","devtoolsFrontendUrl":"https://chrome-devtools-frontend.appspot.com/serve_internal_file/@2d54072eb2f350d37f3f304c4ba0fafcddbd7e82/worker_app.html?ws=127.0.0.1:10900/devtools/page/BB0EE977F0C88F5DF6E50F902A855CDC","id":"BB0EE977F0C88F5DF6E50F902A855CDC","title":"Service Worker https://webdriver.io/sw.js?params=%7B%22offlineMode%22%3Afalse%2C%22debug%22%3Afalse%7D","type":"service_worker","url":"https://webdriver.io/sw.js?params=%7B%22offlineMode%22%3Afalse%2C%22debug%22%3Afalse%7D","webSocketDebuggerUrl":"ws://127.0.0.1:10900/devtools/page/BB0EE977F0C88F5DF6E50F902A855CDC"}],"webviewName":"WEBVIEW_com.wdiodemoapp"},{"proc":"@chrome_devtools_remote","webview":"WEBVIEW_373737","info":{"Android-Package":"com.no.webviews","Browser":"Chrome/124.0.6367.219","Protocol-Version":"1.3","User-Agent":"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36","V8-Version":"12.4.254.16","WebKit-Version":"537.36 (@7741f71cbce3b7dfe3eb5890976d2596364b0733)","webSocketDebuggerUrl":"ws://127.0.0.1:10900/devtools/browser"},"pages":[{"description":"{\\"attached\\":true,\\"empty\\":true,\\"height\\":2682,\\"never_attached\\":false,\\"screenX\\":0,\\"screenY\\":144,\\"visible\\":false,\\"width\\":1440}","devtoolsFrontendUrl":"https://chrome-devtools-frontend.appspot.com/serve_internal_file/@2d54072eb2f350d37f3f304c4ba0fafcddbd7e82/inspector.html?ws=127.0.0.1:10900/devtools/page/6751C1E052A63B0CA27F839216AEF4B8","faviconUrl":"https://emptypage.io/img/favicon.png","id":"6751C1E052A63B0CA27F839216AEF4B8","title":"Empty Page","type":"page","url":"https://emptypage.io/","webSocketDebuggerUrl":"ws://127.0.0.1:10900/devtools/page/6751C1E052A63B0CA27F839216AEF4B8"}],"webviewName":"WEBVIEW_com.no.webviews"}]']`;