Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bcastane opened this issue Aug 22, 2021 · 3 comments
Closed

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

bcastane opened this issue Aug 22, 2021 · 3 comments

Comments

@bcastane
Copy link

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
Copy link
Contributor

dimaqq commented Aug 23, 2021

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
Copy link
Contributor

dimaqq commented Aug 23, 2021

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

@bcastane
Copy link
Author

Thanks! get_property is working fine now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants