@sap_oss/wdio-qmate-service
Version:
[](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[](http
19 lines (14 loc) • 616 B
JavaScript
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