Skip to content

Commit 2530a9c

Browse files
author
Stainless Bot
committed
feat: undo playwright_roxy
1 parent f5c9093 commit 2530a9c

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

examples/playwright_proxy.py

+5-26
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@ def check_proxy_bytes(session_id: str) -> None:
2424
def run_enable_via_create_session(playwright: Playwright) -> None:
2525
session = bb.sessions.create(project_id=BROWSERBASE_PROJECT_ID, proxies=True)
2626

27-
print("Connecting")
2827
browser = playwright.chromium.connect_over_cdp(session.connect_url)
29-
print("Connected")
3028

3129
context = browser.contexts[0]
3230
page = context.pages[0]
33-
print("Going to google")
3431
page.goto("https://www.google.com")
35-
print("Got title")
3632
page_title = page.title()
3733

3834
page.close()
@@ -180,26 +176,9 @@ def run_geolocation_non_american_city(playwright: Playwright) -> None:
180176
if __name__ == "__main__":
181177
with sync_playwright() as playwright:
182178
# You can run any of these tests by uncommenting them
183-
print("\nRunning: enable_via_create_session")
184179
run_enable_via_create_session(playwright)
185-
print("✓ Completed: enable_via_create_session\n")
186-
187-
print("Running: enable_via_querystring_with_created_session")
188-
run_enable_via_querystring_with_created_session(playwright)
189-
print("✓ Completed: enable_via_querystring_with_created_session\n")
190-
191-
print("Running: geolocation_country")
192-
run_geolocation_country(playwright)
193-
print("✓ Completed: geolocation_country\n")
194-
195-
print("Running: geolocation_state")
196-
run_geolocation_state(playwright)
197-
print("✓ Completed: geolocation_state\n")
198-
199-
print("Running: geolocation_american_city")
200-
run_geolocation_american_city(playwright)
201-
print("✓ Completed: geolocation_american_city\n")
202-
203-
print("Running: geolocation_non_american_city")
204-
run_geolocation_non_american_city(playwright)
205-
print("✓ Completed: geolocation_non_american_city\n")
180+
# run_enable_via_querystring_with_created_session(playwright)
181+
# run_geolocation_country(playwright)
182+
# run_geolocation_state(playwright)
183+
# run_geolocation_american_city(playwright)
184+
# run_geolocation_non_american_city(playwright)

0 commit comments

Comments
 (0)