add webdriverio framework

This commit is contained in:
thislight 2024-12-21 17:19:43 +08:00
parent 189662b9e0
commit 14beef39c2
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
9 changed files with 409 additions and 2 deletions

15
test/objects/page.ts Normal file
View file

@ -0,0 +1,15 @@
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}`);
}
}