-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Viewport randomly shrinking while using browser-use. #673
Comments
This happens because browser-use (which uses playwright) takes screenshot of current page (for creating gif). The default viewport for playwright is 1280x720. You won't see this twitching in the final agent_history_gif. But if you want to record screen using some other tool, then you could change the scale of our system display. |
I had already disabled the agent_history_gif feature. this issue comes even if it is off or on. |
Earlier screenshot was taken when use_vision flag was true, but due to this commit, it is being taken for all cases. |
So will changing the version <0.1.33 fix this? |
I raised a PR, check if it resolves your issue. |
Fixed by @PaperBoardOfficial, thanks! |
Bug Description
When I try to scrape website (for e.g. Zillow) the browser view port randomly shrinks and then becomes normal.
llm is gemini-2.0-flash
Below is the video of the twitching happening on zillow
Untitled.video.-.Made.with.Clipchamp.mp4
Reproduction Steps
Code Sample
Version
python 3.11, pip 22.3, browser-use 0.1.36
LLM Model
Other (specify in description)
Operating System
Windows 11
Relevant Log Output
The text was updated successfully, but these errors were encountered: