Firoj112 commited on
Commit
8d34422
·
verified ·
1 Parent(s): dabccbb

Update tools/scroll_page.py

Browse files
Files changed (1) hide show
  1. tools/scroll_page.py +2 -2
tools/scroll_page.py CHANGED
@@ -2,7 +2,7 @@ from smolagents.tools import Tool
2
  from helium import scroll_down, S
3
  from selenium.webdriver.common.by import By
4
 
5
- def scroll_page(driver, pixels=1000, selector=None):
6
  """
7
  Scroll the page by a specified number of pixels or to a specific element.
8
 
@@ -30,7 +30,7 @@ tool = Tool(
30
  name="scroll_page",
31
  description="Scrolls the page by a specified number of pixels or to an element with a given CSS selector.",
32
  inputs={
33
- "pixels": {"type": "int", "default": 1000, "description": "Number of pixels to scroll down"},
34
  "selector": {"type": "str", "default": None, "description": "CSS selector of the element to scroll to"}
35
  },
36
  output_type="str",
 
2
  from helium import scroll_down, S
3
  from selenium.webdriver.common.by import By
4
 
5
+ def scroll_page(driver, pixels=600, selector=None):
6
  """
7
  Scroll the page by a specified number of pixels or to a specific element.
8
 
 
30
  name="scroll_page",
31
  description="Scrolls the page by a specified number of pixels or to an element with a given CSS selector.",
32
  inputs={
33
+ "pixels": {"type": "int", "default": 600, "description": "Number of pixels to scroll down"},
34
  "selector": {"type": "str", "default": None, "description": "CSS selector of the element to scroll to"}
35
  },
36
  output_type="str",