I'm using Playwright Python, but having this error in a certain piece of my code, I was wondering if it's a bug or I'm doing something wrong. Here's the code:
table = await page.query_selector("#grvPedidos")
time.sleep(3)
print(await table.inner_html())
Result:
AttributeError: 'NoneType' object has no attribute 'inner_html'
But I'm absolutely sure that this table exists and has content, if I go through Selenium it recognizes normal, I want to know what's going wrong.