Skip to content

[Real Browser] Allow keyword lookup #4068

@rufinus

Description

@rufinus

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

Other

🔖 Feature description

We have multiple angular sites, we can monitor with status codes, but it would be better to check for certain keywords. The normal keyword monitor is of no use - couse the whole page is rendered by javascript.
The Browser Engine Monitor-Typ shows a screenshot which is a good conformation, but doesnt get auto triggered if the page is not rendered at all or with an error.

✔️ Solution

Allow Keyword lookup in rendered dom tree.

Looking into the used library playwright it should be rather easy to integrate (but I'm no python or javascript developer):

await expect(page.getByText('Welcome, John')).toBeVisible();

see https://playwright.dev/docs/locators#locate-by-text

❓ Alternatives

nothing comes to mind - if you have an alternative idea, please let me know.

📝 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:monitorIssues or PRs related to monitorsfeature-requestRequest for new features to be addedtype:enhance-existingfeature wants to enhance existing monitor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions