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
Interactive screenshots revert to original page state before saving #125
Comments
Huh... yeah I just recreated that myself using Here's what's supposed to happen: shot-scraper/shot_scraper/cli.py Lines 285 to 317 in 6d340ad
Note that in interactive mode it opens up the browser and then waits for the user to hit And here's where that takes effect: shot-scraper/shot_scraper/cli.py Lines 952 to 977 in 6d340ad
Reading the code it looks to me like it should be doing the right thing - taking the screenshot based on the state of the page after the user has interacted with it, rather than creating a new page. Needs more digging. |
Spotted it! Further down that shot-scraper/shot_scraper/cli.py Lines 989 to 1002 in 6d340ad
That |
Tested manually and this fixes the issue. |
The
--interactive
flag allows the user to interact with the page before saving. However, it seems that shot-scraper reloads the URL afterenter
is pressed, reverting the page back to its original state. This limitation or defect reduces the value of--interactive
.For example, load
https://maps.google.com/
with--interactive
. Drag the map around, then hitenter
. The original state of the map is saved.This is true for any controls as well. For example, try
https://mui.com/material-ui/react-slider/
and drag some sliders around in interactive mode, then save. The sliders are in their original default state.If the user changes the URL interactively to a new page, the old URL is reloaded and saved.
The text was updated successfully, but these errors were encountered: