Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findBySelector is working only inside the body #17

Open
katokdoescode opened this issue Mar 17, 2023 · 0 comments
Open

findBySelector is working only inside the body #17

katokdoescode opened this issue Mar 17, 2023 · 0 comments

Comments

@katokdoescode
Copy link

  • 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant