tutu/test/objects/page.ts

16 lines
381 B
TypeScript
Raw Normal View History

2024-12-21 09:19:43 +00:00
import { browser } from "@wdio/globals";
/**
* main page object containing all methods, selectors and functionality
* that is shared across all page objects
*/
export default class Page {
/**
* Opens a sub page of the page
* @param path path of the sub page (e.g. /path/to/page.html)
*/
public static open(path: string) {
return browser.url(`/${path}`);
}
}