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

19 lines (14 loc) 616 B
const { BASE_URL } = require("../../../../src/reuse/constants.ts"); describe("element - highlight", function () { let product; it("Preparation", async function () { await browser.navigateTo(`${BASE_URL}/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3`); }); it("Execution", async function () { product = await nonUi5.element.getByXPath("//div[contains(text(),'Laptops')]"); const duration = 3000; const color = "green"; await nonUi5.element.highlight(product, duration, color); }); }); // TODO: get state (properties) of element to check highlight=true