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

id-based selector causes a timeout error #32

Open
zkamvar opened this issue Nov 22, 2021 · 0 comments
Open

id-based selector causes a timeout error #32

zkamvar opened this issue Nov 22, 2021 · 0 comments

Comments

@zkamvar
Copy link

zkamvar commented Nov 22, 2021

I'm noticing that I am unable to capture screenshots of ID selectors unless they are embedded in the URL. A workaround is to add the anchor to the end of the URL, but that causes local files to be considered missing because the "#anchor" is considered to be part of the file name.

# Does not work
webshot2::webshot("https://www.rstudio.com/blog/blogdown-v1.0/", selector = "#workflows")
#> Error: Chromote: timed out waiting for event Page.loadEventFired

# Works
webshot2::webshot("https://www.rstudio.com/blog/blogdown-v1.0/#workflows")

Any idea what could be going on here?

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