OBA Website automated using playwright
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

36 lines
874 B

exports.UserPage=
class UserPage {
constructor(page) {
this.page = page;
this.Users = "//span[normalize-space()='Users']";
this.activeUserButton = "//span[@class='flip-indecator']";
this.enableButton = "//button[@id='66eaa9656b2f4a3d52a42549']";
}
async userPageButton(){
await this.page.locator(this.Users).click();
}
async activeUserButtonCheck(){
await this.page.locator(this.Users).click();
await this.page.locator(this.activeUserButton).click();
// const text =await this.page.locator("button:active").allInnerTexts();
console.log(text);
}
async activeUserButtonEdit(){
await this.page.locator(this.Users).click();
await this.page.locator(this.activeUserButton).click();
await this.page.locator(this.enableButton).click();
}
}