Skip to content

Commit 665e3b6

Browse files
feat(api): api update
1 parent 83aed8d commit 665e3b6

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-45328621800082e652c9b2f34b176b89ebba3af423ea9f4fed91a359cf4e0ae4.yml
3-
openapi_spec_hash: c20658b49312b14d158ce5c88f34ee34
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-e2ed1b5267eeff92982918505349017b9155da2c7ab948787ab11cf9068af1b8.yml
3+
openapi_spec_hash: 6639c21dccb52ca610cae833227a9791
44
config_hash: 74882e23a455dece33e43a27e67f0fbb

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ session = client.sessions.create(
9191
browser_settings={
9292
"advanced_stealth": True,
9393
"block_ads": True,
94+
"captcha_image_selector": "captchaImageSelector",
95+
"captcha_input_selector": "captchaInputSelector",
9496
"context": {
9597
"id": "id",
9698
"persist": True,

src/browserbase/types/session_create_params.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@ class BrowserSettings(TypedDict, total=False):
120120
block_ads: Annotated[bool, PropertyInfo(alias="blockAds")]
121121
"""Enable or disable ad blocking in the browser. Defaults to `false`."""
122122

123+
captcha_image_selector: Annotated[str, PropertyInfo(alias="captchaImageSelector")]
124+
"""Custom selector for captcha image.
125+
126+
See [Custom Captcha Solving](/features/stealth-mode#custom-captcha-solving)
127+
"""
128+
129+
captcha_input_selector: Annotated[str, PropertyInfo(alias="captchaInputSelector")]
130+
"""Custom selector for captcha input.
131+
132+
See [Custom Captcha Solving](/features/stealth-mode#custom-captcha-solving)
133+
"""
134+
123135
context: BrowserSettingsContext
124136

125137
extension_id: Annotated[str, PropertyInfo(alias="extensionId")]

tests/api_resources/test_sessions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def test_method_create_with_all_params(self, client: Browserbase) -> None:
3737
browser_settings={
3838
"advanced_stealth": True,
3939
"block_ads": True,
40+
"captcha_image_selector": "captchaImageSelector",
41+
"captcha_input_selector": "captchaInputSelector",
4042
"context": {
4143
"id": "id",
4244
"persist": True,
@@ -269,6 +271,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserbas
269271
browser_settings={
270272
"advanced_stealth": True,
271273
"block_ads": True,
274+
"captcha_image_selector": "captchaImageSelector",
275+
"captcha_input_selector": "captchaInputSelector",
272276
"context": {
273277
"id": "id",
274278
"persist": True,

0 commit comments

Comments
 (0)