Skip to content

findBySelector is working only inside the body #17

Description

@katokdoescode
  • const html = await this.page.findBySelector('html');
    // null
  • const body = await this.page.findBySelector('body');
    // null

It seems like a simple way to check <html> attributes, but this selector can only find elements inside the <body> tag.
Developers often use additional classes and attributes on <html> and <body> elements.

Is there is another way to check <html> attributes?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions