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

Question about finding coords for splash_click #17

Open
Jjohn987 opened this issue Aug 2, 2018 · 0 comments
Open

Question about finding coords for splash_click #17

Jjohn987 opened this issue Aug 2, 2018 · 0 comments

Comments

@Jjohn987
Copy link

Jjohn987 commented Aug 2, 2018

I'm trying to use splashr's splash_click() function. As I work through the example at the bottom of the splashr tutorial, it doesn't seem to work for me.

The png that returns to me is covered up by the pop-up that initially appears when visiting the site. The documentation specifies that coords for the click function need to be "relative to viewport". I'm not sure what that means, but I'm guessing mine aren't.

How can I be sure I am using the right coords?

splash_local %>% splash_plugins(TRUE) %>% splash_go("https://gis.cdc.gov/GRASP/Fluview/FluHospRates.html") %>% splash_wait(4) %>% splash_click(460, 550) %>% splash_wait(2) %>% splash_click(230, 85) %>% splash_wait(2) %>% splash_png()

splashr_screenshot

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