Skip to content

Commit 1fdd7ed

Browse files
committed
Update hybrid_browser_toolkit_ts.py
1 parent 5075f06 commit 1fdd7ed

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

camel/toolkits/hybrid_browser_toolkit/hybrid_browser_toolkit_ts.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,15 +1421,18 @@ def col_to_letter(col_idx: int) -> str:
14211421
if system == "Darwin":
14221422
operations.append({"type": "press", "keys": ["Meta", "j"]})
14231423
else:
1424-
# On Windows/Linux, it's usually Ctrl+J or Alt+D?
1424+
# On Windows/Linux, it's usually Ctrl+J or Alt+D
14251425
# The snapshot showed Cmd+J for Mac.
1426-
# Standard Google Sheets shortcut for "Go to range" is F5 or Ctrl+J
1426+
# Standard Google Sheets shortcut for
1427+
# "Go to range" is F5 or Ctrl+J
14271428
operations.append({"type": "press", "keys": ["Control", "j"]})
1428-
1429+
14291430
operations.append({"type": "wait", "delay": 500})
14301431

14311432
# 2. Type Address
1432-
operations.append({"type": "type", "text": cell_address, "delay": 0})
1433+
operations.append(
1434+
{"type": "type", "text": cell_address, "delay": 0}
1435+
)
14331436
operations.append({"type": "wait", "delay": 200})
14341437
operations.append({"type": "press", "keys": ["Enter"]})
14351438
operations.append({"type": "wait", "delay": 500})
@@ -1454,12 +1457,16 @@ def col_to_letter(col_idx: int) -> str:
14541457
)
14551458
# Wait a bit for the last input to settle
14561459
import asyncio
1460+
14571461
await asyncio.sleep(1.0)
1458-
1462+
14591463
tab_info = await ws_wrapper.get_tab_info()
14601464

14611465
return {
1462-
"result": f"Successfully input to {len(cells)} cells using absolute navigation",
1466+
"result": (
1467+
f"Successfully input to {len(cells)} cells "
1468+
"using absolute navigation"
1469+
),
14631470
"snapshot": "",
14641471
"tabs": tab_info,
14651472
"current_tab": next(

0 commit comments

Comments
 (0)