File tree Expand file tree Collapse file tree 2 files changed +1
-28
lines changed Expand file tree Collapse file tree 2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " stagehand"
7
- version = " 0.0.5 "
7
+ version = " 0.0.6 "
8
8
description = " Python SDK for Stagehand"
9
9
readme = " README.md"
10
10
license = {text = " MIT" }
Original file line number Diff line number Diff line change @@ -374,33 +374,6 @@ async def extract(
374
374
)
375
375
return result_dict
376
376
377
- async def screenshot (self , options : Optional [dict ] = None ) -> str :
378
- """
379
- Take a screenshot of the current page via the Stagehand server.
380
-
381
- Args:
382
- options (Optional[dict]): Optional screenshot options.
383
- May include:
384
- - type: "png" or "jpeg" (default: "png")
385
- - fullPage: whether to take a full page screenshot (default: False)
386
- - quality: for jpeg only, 0-100 (default: 80)
387
- - clip: viewport clip rectangle
388
- - omitBackground: whether to hide default white background (default: False)
389
-
390
- Returns:
391
- str: Base64-encoded screenshot data.
392
- """
393
- payload = options or {}
394
-
395
- if self ._stagehand .use_api :
396
- lock = self ._stagehand ._get_lock_for_session ()
397
- async with lock :
398
- result = await self ._stagehand ._execute ("screenshot" , payload )
399
-
400
- return result
401
- else :
402
- return await self ._page .screenshot (** payload )
403
-
404
377
# Method to get or initialize the persistent CDP client
405
378
async def get_cdp_client (self ) -> CDPSession :
406
379
"""Gets the persistent CDP client, initializing it if necessary."""
You can’t perform that action at this time.
0 commit comments