UNPKG

@sap_oss/wdio-qmate-service

Version:

[![REUSE status](https://api.reuse.software/badge/github.com/SAP/wdio-qmate-service)](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[![Node.js CI](https://github.com/SAP/wdio-qmate-service/actions/workflows/node.js.yml/badge.svg)](http

35 lines (32 loc) 978 B
"use strict"; describe("browser - clearBrowser", function () { it("Preparation", async function () { await browser.navigateTo(browser.config.baseUrl); const selector = { "elementProperties": { "viewName": "sap.ui.documentation.sdk.view.App", "metadata": "sap.m.Button", "text": [{ "path": "i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_ACCEPT_ALL" }] } }; await ui5.userInteraction.click(selector); }); it("Execution", async function () { await util.browser.clearBrowser(true, true, true); }); it("Verification", async function () { await util.browser.refresh(); const selector = { "elementProperties": { "viewName": "sap.ui.documentation.sdk.view.App", "metadata": "sap.m.Button", "text": [{ "path": "i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_ACCEPT_ALL" }] } }; await ui5.element.getDisplayed(selector); }); });