camoufox icon indicating copy to clipboard operation
camoufox copied to clipboard

page.mouse.wheel() and page.go_back() not working

Open maxiedaniels opened this issue 10 months ago • 2 comments

Describe the bug:

I noticed the other day that go_back wasn't working, and then today, scrolling isn't working either. The only clue I can see is that the back and forward buttons aren't even clickable when using camoufox test. If I switch the engine out for Playwright, neither of these issues occur. I've tried turning humanize off and I've tried removing the screen constraints, no dice.

Screenshots:

If applicable, add screenshots to help explain your problem.

To Reproduce:

constrains = Screen(max_width=1920, min_width=1500, max_height=1080, min_height=750) engine = Camoufox(os=["windows", "macos"], geoip=True, humanize=True, screen=constrains) with engine as p: page = p.new_page() page.mouse.wheel(0, 500)

Version:

Pip package: v0.4.11 Camoufox: v135.0-beta.21 (Up to date!)

maxiedaniels avatar Feb 10 '25 20:02 maxiedaniels

To use page.go_back(), please use enable_cache=True: https://camoufox.com/python/usage/#enable-cache

As for the mouse wheel, this is unexpected behavior. Does this fail on all sites you've tested?

daijro avatar Mar 04 '25 04:03 daijro

@daijro Ah, will try that. Yes, mouse wheel doesn't work on any site. Works fine in normal playwright. Anything i can do to debug?

maxiedaniels avatar Mar 04 '25 04:03 maxiedaniels