robotframework / robotframework/SeleniumLibrary

'Scroll Element Into View' is broken on Firefox

Open
#1,780 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce the issue

  • Open a page in Firefox such that some element is not inside the viewport
  • Try to scroll to the element with 'Scroll Element Into View'

Expected behavior and actual behavior

When I follow those steps, I see...
Gist with trace level log output, stack trace and sample .robot and .html files

I was expecting the element to be scrolled into view. This does work on Chromium, both headless and normal.

Environment

Browser: Firefox 103.0
Browser driver: geckodriver 0.31.0
Operating System: Linux, Ubuntu 20.04
Libraries

  • Robot Framework: 5.0
  • Selenium: 4.1.3 / 4.4.3
  • SeleniumLibrary: 6.0.0
  • Interpreter: CPython 3.8.10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked gist and its sample .robot and .html files, reproducing the issue in Firefox 103 with geckodriver 0.31.0 and comparing it with Chromium. The work is done when 'Scroll Element Into View' reliably scrolls the target element into the viewport in Firefox.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.