-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Unable to get accurate HTML code for a website. #7435
Comments
@jschfflr any comments ? |
Hi @Rajat-Sharma-2710 |
@jschfflr I have updated the code to waitUntil 'networkidle2' and added the query selector you asked.
On execution I an getting timeout error:
Am I missing something ? |
This page uses shadow roots. Please see #858 |
@ggorlen I tried using the approach link
The query is copied using copy JS path.
|
@Rajat-Sharma-2710 That code works for me. Please show a complete, reproducible example, and let's take the discussion and code back to the Stack Overflow thread if you don't mind, so everything's in one place -- this isn't really a Puppeteer issue. I left the note above mainly for future visitors that might stumble on the thread. Thanks. |
@ggorlen Good catch with the shadow roots, thanks! I totally missed that! |
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
What is the expected result?
The HTML code should contain hrefs that we see when visiting the page in browser windows. Shown in image below
What happens instead?
Inaccurate HTML code is returned by puppeteer. The hrefs shown in image are not rendered.
The text was updated successfully, but these errors were encountered: