Rayrun
← Back to Discord Forum

Can playwright page object model extends page

terence1948posted in #help-playwright
Open in Discord
terence1948

So that I can use page's commands with the new page object model like:

class PlaywrightDevPage extends Page{
  ...
}
const playwrightDevPage = new PlaywrightDevPage()
await playwrightDevPage.getByText('submit').click()

This thread is trying to answer question "Can the playwright page object model be extended to use page's commands with the new page object model?"

0 replies

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].