HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
349 stars 52 forks source link

get_attribute("innerHTML") stopped working (chrome) #138

Closed bcastane closed 2 years ago

bcastane commented 2 years ago

Hi, I was using the method get_attribute("innerHTML") to get the HTML of the website, but suddenly it stopped working. I have tried different workarounds but with no luck so far. For example the instruction session.page_source() dont bring the new html code render by jquery in the website.

Also, i had no luck with await session.execute_script("document.querySelector('body').innerHTML;")

Thanks!

dimaqq commented 2 years ago

I think it may be essentially a duplicate of #134 Chrome has recently(?) switched to more pedantic semantics for get_attribute and what you are after it probably get_property now?

I'm only guessing here, maybe try arsenic directly from the main branch?

dimaqq commented 2 years ago

Or try today's release, in any case via get_property rather than get_attribute

bcastane commented 2 years ago

Thanks! get_property is working fine now!