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

30 lines (22 loc) 822 B
"use strict"; describe("element - getByName + expectToBeVisible", function () { let navigationBar; it("Preparation", async function () { await common.navigation.navigateToUrl("http://localhost:34005/forms.html"); }); it("Execution", async function () { navigationBar = await nonUi5.element.getByName("navbar"); }); it("Verification", async function () { await nonUi5.assertion.expectToBeVisible(navigationBar, 10000); }); }); describe("element - getByName and catch error", function () { it("Preparation", async function () { await common.navigation.navigateToUrl("http://localhost:34005/forms.html"); }); it("Execution & Verification", async function () { await expect(nonUi5.element.getByName("wrong_name")) .rejects.toThrow("Function 'getByName' failed"); }); });