Skip to content

Conversation

@edenreich
Copy link
Contributor

Add comprehensive scroll skill implementing the following features:

  • Page scrolling (top, bottom, directional with amount)
  • Element scrolling (scroll into view with alignment options)
  • Coordinate-based scrolling
  • Smooth vs instant behavior support
  • Comprehensive validation and error handling

The implementation includes:

  • Updated agent.yaml with scroll skill definition
  • New scroll skill implementation in skills/scroll.go
  • Added Scroll method to BrowserAutomation interface
  • Implemented scrollPage, scrollElement, and scrollToCoordinates methods
  • Comprehensive test suite covering all functionality
  • Updated mock to support scroll method

This enables:

  • Triggering infinite scroll and lazy loading
  • Positioning elements for optimal screenshots
  • Supporting progressive content loading patterns
  • Better automation workflows with explicit scroll control

Closes #39

Generated with Claude Code

…ning

Add comprehensive scroll skill implementing the following features:
- Page scrolling (top, bottom, directional with amount)
- Element scrolling (scroll into view with alignment options)
- Coordinate-based scrolling
- Smooth vs instant behavior support
- Comprehensive validation and error handling

The implementation includes:
- Updated agent.yaml with scroll skill definition
- New scroll skill implementation in skills/scroll.go
- Added Scroll method to BrowserAutomation interface
- Implemented scrollPage, scrollElement, and scrollToCoordinates methods
- Comprehensive test suite covering all functionality
- Updated mock to support scroll method

This enables:
- Triggering infinite scroll and lazy loading
- Positioning elements for optimal screenshots
- Supporting progressive content loading patterns
- Better automation workflows with explicit scroll control

Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add scroll skill for page scrolling and element positioning

1 participant