Skip to content

Commit acecba0

Browse files
committed
Remove unnecessary blank line and add note about click actions in zoom_webpage function
1 parent ede24f9 commit acecba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agentlab/agents/agent_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def draw_arrowhead(draw, start, end, arrow_length=15, arrow_angle=30):
130130
draw.line([end, right], fill="red", width=4)
131131

132132

133-
134133
def draw_click_indicator(image: Image.Image, x: int, y: int) -> Image.Image:
135134
"""
136135
Draws a click indicator (+ shape with disconnected lines) at (x, y) on the image.
@@ -185,6 +184,8 @@ def zoom_webpage(page: Page, zoom_factor: float = 1.5):
185184
"""
186185
Zooms the webpage to the specified zoom factor.
187186
187+
NOTE: Click actions with bid doesn't work properly when zoomed in.
188+
188189
Args:
189190
page: The Playwright Page object.
190191
zoom_factor: The zoom factor to apply (default is 1.0, which means no zoom).
@@ -242,4 +243,3 @@ def parse_func_call_string(call_str: str) -> Tuple[Optional[str], Optional[Tuple
242243

243244
except (SyntaxError, ValueError, TypeError):
244245
return None, None
245-

0 commit comments

Comments
 (0)