We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535339d commit a474768Copy full SHA for a474768
tests/conftest.py
@@ -233,7 +233,9 @@ def mock_stagehand_client(mock_stagehand_config):
233
# Mock the essential components
234
client.llm = MagicMock()
235
client.llm.completion = AsyncMock()
236
- client.page = MagicMock()
+ # Set internal page properties instead of the read-only page property
237
+ client._original_page = MagicMock()
238
+ client._active_page = client._original_page
239
client.agent = MagicMock()
240
client._client = MagicMock()
241
client._execute = AsyncMock()
0 commit comments