Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

300
Views
Simulate mouse wheel rotation via JavaScript on a Web Page

I have third-party website (which means read-only, I can't modify its code) where they using mouse wheel event to do the zooming for custom canvas based control inside iframe.

I'm trying to automate operations on that web page via Selenium WebDriver, webdriver itself can't emulate mouse wheel scroll event, so I'm trying to do it via JavascritExecutor. I tried all possible variations of scrolling (window.scrollBy(), .scrollTop(), .scroll()) - nothing works inside iframe and on that tricky canvas control, so I have only one option - is to simulate physical mouse wheel event somehow, non of the SO answers can help me with this.

How to simulate mouse wheel event via pure JS (browser Chrome or FF)?

P.S. JQuery also available on that website if it might help.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!