@@ -24,15 +24,11 @@ def check_proxy_bytes(session_id: str) -> None:
24
24
def run_enable_via_create_session (playwright : Playwright ) -> None :
25
25
session = bb .sessions .create (project_id = BROWSERBASE_PROJECT_ID , proxies = True )
26
26
27
- print ("Connecting" )
28
27
browser = playwright .chromium .connect_over_cdp (session .connect_url )
29
- print ("Connected" )
30
28
31
29
context = browser .contexts [0 ]
32
30
page = context .pages [0 ]
33
- print ("Going to google" )
34
31
page .goto ("https://www.google.com" )
35
- print ("Got title" )
36
32
page_title = page .title ()
37
33
38
34
page .close ()
@@ -180,26 +176,9 @@ def run_geolocation_non_american_city(playwright: Playwright) -> None:
180
176
if __name__ == "__main__" :
181
177
with sync_playwright () as playwright :
182
178
# You can run any of these tests by uncommenting them
183
- print ("\n Running: enable_via_create_session" )
184
179
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