Closed juanfrilla closed 1 year ago
How can I reproduce this problem
@ClericPy :
import asyncio
from ichrome import AsyncChromeDaemon
async def main():
async with AsyncChromeDaemon(headless=True, disable_image=True) as cd:
async with cd.incognito_tab() as tab:
url = "https://servicio.indecopi.gob.pe/buscadorResoluciones/tribunal.seam"
await tab.goto(url, timeout=3)
result = await tab.wait_tag_click("#tagyouwant")
asyncio.run(main())
That website cannot be opened. I will try to reproduce it in other ways and see. Also, have you tried running it with headless=False? Does it work normally in that case? It seems the error is because the page is not being rendered. You can check in headless=False mode to see if the CSS is wrong or the page really isn't displaying.
Okay, finally i solved it with the requests
library haha, I guess it's something about the web-technologies which the page is implemented with.
ok. I tried times but never reproduce that.
Depend on the scraped website it goes well, but now with another website it throws me this, using result = await tab.wait_tag_click("#tagyouwant") I print the items variable that throws me the error