3
3
4
4
This test verifies that the timeout mechanism works correctly for act operations,
5
5
based on the TypeScript expect_act_timeout evaluation.
6
+
7
+ NOTE: Act timeout functionality has been removed from the Python implementation.
8
+ These tests are skipped until timeout support is re-implemented.
6
9
"""
7
10
8
11
import os
@@ -62,31 +65,25 @@ async def browserbase_stagehand(self, browserbase_config):
62
65
@pytest .mark .asyncio
63
66
@pytest .mark .regression
64
67
@pytest .mark .local
68
+ @pytest .mark .skip (reason = "Act timeout functionality has been removed from the Python implementation" )
65
69
async def test_expect_act_timeout_local (self , local_stagehand ):
66
70
"""
67
71
Regression test: expect_act_timeout
68
72
69
- Mirrors the TypeScript expect_act_timeout evaluation:
73
+ SKIPPED: Act timeout functionality has been removed from the Python implementation.
74
+ The timeout_ms parameter in ActOptions is not currently handled by the act handler.
75
+
76
+ Original test purpose:
70
77
- Navigate to docs.stagehand.dev
71
78
- Attempt action with 1 second timeout
72
79
- Expect the action to fail due to timeout
73
80
"""
74
- stagehand = local_stagehand
75
-
76
- await stagehand .page .goto ("https://docs.stagehand.dev" )
77
-
78
- result = await stagehand .page .act (
79
- "search for 'Stagehand'" ,
80
- timeout_ms = 1000 # 1 second timeout
81
- )
82
-
83
- # Test passes if the action failed (due to timeout or element not found)
84
- # This mirrors the TypeScript: _success: !result.success
85
- assert not result .success , "Action should have failed due to timeout or missing element"
81
+ pass
86
82
87
83
@pytest .mark .asyncio
88
84
@pytest .mark .regression
89
85
@pytest .mark .api
86
+ @pytest .mark .skip (reason = "Act timeout functionality has been removed from the Python implementation" )
90
87
@pytest .mark .skipif (
91
88
not (os .getenv ("BROWSERBASE_API_KEY" ) and os .getenv ("BROWSERBASE_PROJECT_ID" )),
92
89
reason = "Browserbase credentials not available"
@@ -95,16 +92,12 @@ async def test_expect_act_timeout_browserbase(self, browserbase_stagehand):
95
92
"""
96
93
Regression test: expect_act_timeout (Browserbase)
97
94
98
- Same test as local but running in Browserbase environment.
99
- """
100
- stagehand = browserbase_stagehand
95
+ SKIPPED: Act timeout functionality has been removed from the Python implementation.
96
+ The timeout_ms parameter in ActOptions is not currently handled by the act handler.
101
97
102
- await stagehand .page .goto ("https://docs.stagehand.dev" )
103
-
104
- result = await stagehand .page .act (
105
- "search for 'Stagehand'" ,
106
- timeout_ms = 1000 # 1 second timeout
107
- )
108
-
109
- # Test passes if the action failed (due to timeout or element not found)
110
- assert not result .success , "Action should have failed due to timeout or missing element"
98
+ Original test purpose:
99
+ - Navigate to docs.stagehand.dev
100
+ - Attempt action with 1 second timeout
101
+ - Expect the action to fail due to timeout
102
+ """
103
+ pass
0 commit comments