mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
![]() # Aider chat conversation: USER: with playwright enabled, i get: You need to enable JavaScript to run this app. ASSISTANT: To address the issue of JavaScript not being enabled, we need to ensure that Playwright is properly executing JavaScript on the page. This can be done by waiting for the page to load completely and ensuring that JavaScript is executed. We will modify the `scrape_with_playwright` method to wait for the network to be idle and ensure that the page is fully loaded before extracting the content. Here are the changes: aider/scrape.py ```python <<<<<<< SEARCH page.goto(url) ======= page.goto(url, wait_until="networkidle") >>>>>>> REPLACE ``` This change will ensure that Playwright waits for the network to be idle, which typically means that all JavaScript has been executed and the page is fully loaded. |
||
---|---|---|
.. | ||
coders | ||
queries | ||
tests | ||
__init__.py | ||
args.py | ||
args_formatter.py | ||
commands.py | ||
diffs.py | ||
dump.py | ||
gui.py | ||
history.py | ||
io.py | ||
linter.py | ||
litellm.py | ||
main.py | ||
mdstream.py | ||
models.py | ||
prompts.py | ||
repo.py | ||
repomap.py | ||
scrape.py | ||
sendchat.py | ||
urls.py | ||
utils.py | ||
versioncheck.py | ||
voice.py |