Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
Signed-off-by: hpathak <[email protected]>
  • Loading branch information
hpathak committed Dec 2, 2024
1 parent 4bba21a commit 80d26e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions playwright_test/Pages/certificates.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import yaml from 'js-yaml';

class CertificatesPage{
page: Page;
pageTitle: Locator;
click_CertificatePage: Locator;
CERTIFICATE_TITLE: Locator;
option1: Locator;
Expand Down Expand Up @@ -118,12 +119,18 @@ class CertificatesPage{
this.previous_step = page.locator('//button[contains(text(),"Previous step")]')
this.close_button = page.locator('//button[contains(text(), "Close")]')
this.continue_CachingService = page.locator('//button[text()="Continue to Caching Service Setup"]')
this.pageTitle = page.locator("//div[@class='MuiBox-root css-la96ob']/div")
}

async movetoCertificatePage(){
await this.click_CertificatePage.click({timeout: 5000})
}

async getCertificatesPageTitle() {
await this.page.waitForTimeout(500);
return await this.pageTitle.textContent({ timeout: 2000 });
}

async returnTitleOfCertiPage(){
const certificate_title = await this.CERTIFICATE_TITLE.textContent();
return certificate_title;
Expand Down

0 comments on commit 80d26e0

Please sign in to comment.