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();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|