Craft Docs, First Test - Tittle test
This commit is contained in:
15
Craft_Docs_Playwright/page-objects/HomePage.ts
Normal file
15
Craft_Docs_Playwright/page-objects/HomePage.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { Locator, Page, expect
|
||||
} from "@playwright/test";
|
||||
|
||||
export class HomePage{
|
||||
page: Page;
|
||||
|
||||
constructor(page: Page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
async gotoHome() {
|
||||
await this.page.goto('https://www.craft.me/s/Gx2Rhh07iMKxyh');
|
||||
return this;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user