Trisha Tomy commited on
Commit ·
d70e298
1
Parent(s): 0cc7808
Increased Playwright body selector timeout in browser.py
Browse files
src/proxy_lite/browser/browser.py
CHANGED
|
@@ -186,7 +186,7 @@ class BrowserSession:
|
|
| 186 |
await self.current_page.wait_for_load_state(timeout=60000)
|
| 187 |
except PlaywrightTimeoutError:
|
| 188 |
logger.error(f"Timeout waiting for website load state: {self.current_url}")
|
| 189 |
-
await self.current_page.wait_for_selector("body", timeout=
|
| 190 |
# Run the bounding box javascript code to highlight the points of interest on the page
|
| 191 |
page_info = await self.current_page.evaluate(
|
| 192 |
"""() => {
|
|
|
|
| 186 |
await self.current_page.wait_for_load_state(timeout=60000)
|
| 187 |
except PlaywrightTimeoutError:
|
| 188 |
logger.error(f"Timeout waiting for website load state: {self.current_url}")
|
| 189 |
+
await self.current_page.wait_for_selector("body", timeout=180000, state="visible")
|
| 190 |
# Run the bounding box javascript code to highlight the points of interest on the page
|
| 191 |
page_info = await self.current_page.evaluate(
|
| 192 |
"""() => {
|