Why does WebElement.query
always result in ElementNotFound
?
#157
-
Consider the following code: import asyncio
from pydoll.browser import Chrome
async def example():
async with Chrome() as browser:
tab = await browser.start()
await tab.go_to(
"https://autoscrape-labs.github.io/pydoll/deep-dive/find-elements-mixin/"
)
# Get the first table element.
table_element = await tab.query(
".//div[@class='md-typeset__table']/table"
)
# Try getting any child elements of the table element e.g., `thead`, `tr`, etc.
child_elements = await table_element.query(".//*", find_all=True)
asyncio.run(example()) Running that results in the error: The same error is raised whenever I call I'd expect calling Am I misunderstanding something? |
Beta Was this translation helpful? Give feedback.
Answered by
thalissonvs
Jun 16, 2025
Replies: 1 comment 2 replies
-
Hi @noob-4-life , I'll take a look, thanks for reporting |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
thalissonvs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @noob-4-life , I'll take a look, thanks for reporting