aider/aider
Paul Gauthier 337891e739 aider: Modified scrape_with_playwright method to wait for network to be idle before extracting content.
# 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.
2024-06-11 06:35:00 -07:00
..
coders fixed bad url; fixed max_reflection logic 2024-06-08 12:57:36 -07:00
queries fix(tree-sitter-typescript-tags.scm): Add additional queries. 2024-03-04 15:03:55 -07:00
tests moved tests/ to aider/tests/ 2024-06-10 15:33:49 -07:00
__init__.py set version to 0.37.1-dev 2024-06-04 10:31:28 -07:00
args.py finished --vim 2024-06-10 21:16:33 -07:00
args_formatter.py use dashed-names not underscore_names in yaml 2024-06-06 13:46:32 -07:00
commands.py coq for in-chat commands 2024-06-05 20:10:48 -07:00
diffs.py use utf-8 2023-07-05 20:51:35 -07:00
dump.py isort 2023-05-28 22:47:38 -07:00
gui.py browser ver should stop after 3 reflections 2024-06-08 13:38:18 -07:00
history.py refac utils.split_chat_history_markdown 2024-05-11 07:52:06 -07:00
io.py finished --vim 2024-06-10 21:16:33 -07:00
linter.py handle missing end_lineno attr #619 2024-05-29 15:55:55 -07:00
litellm.py ssh 2024-05-29 15:51:29 -07:00
main.py finished --vim 2024-06-10 21:16:33 -07:00
mdstream.py catch shutdown errors 2024-01-23 10:45:58 -08:00
models.py Show model warnings in normal color, not red/error 2024-06-10 15:23:33 -07:00
prompts.py better prompting for LLM to suggest files 2024-05-14 06:02:16 -07:00
repo.py aider: Shortened the docstring in aider/repo.py to comply with the 100 characters line length limit. 2024-05-18 18:30:51 -07:00
repomap.py coq for languages.md 2024-06-05 20:24:19 -07:00
scrape.py aider: Modified scrape_with_playwright method to wait for network to be idle before extracting content. 2024-06-11 06:35:00 -07:00
sendchat.py added temp param, prompt strong that files message is truth 2024-05-16 08:52:30 -07:00
urls.py fixed bad url; fixed max_reflection logic 2024-06-08 12:57:36 -07:00
utils.py improved utils.split_chat_history_markdown 2024-05-11 08:06:16 -07:00
versioncheck.py Recommend pipx upgrade command 2024-05-10 12:07:22 -07:00
voice.py aider: Implemented a more flexible approach to handle different microphone sample rates in aider/voice.py. 2024-06-04 10:27:22 -07:00