robotframework / robotframework/SeleniumLibrary
Enhancement Request: Keyword to control the speed when scrolling an element into view
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 1.5k
- Forks
- 787
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Creating this ticket at Ed's request. Bringing over the Slack communication.
Is there a way in Selenium Library to control the speed used to scroll an element into view?
More info: We have an iFrame that has a button that doesn't enable until a user scrolls to the bottom of the content. The button "fills" a progress bar as the user scrolls. When using Scroll to Element we drop to the bottom too quickly for the button to enable.
Follow up: we ended up using a Javascript call to use scrollIntoView with smooth behavior to get this to work as needed. Still curious if there's a Keyword approach that would do the same or similar, but no pressing need now.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem vorhandenen Schlüsselwort "Scroll to Element" und der Referenz der Issue auf scrollIntoView, einschließlich seines smooth-Verhaltens. Lege fest, wie ein Schlüsselwort die Scrollgeschwindigkeit oder ein gleichwertiges Verhalten bereitstellen würde, und verifiziere anschließend, dass die Interaktion der Schaltfläche mit der Fortschrittsleiste abgeschlossen werden kann, bevor du die Arbeit als erledigt betrachtest.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- testing
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100