Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

dryscrape console.log #64

Closed
JulienSoda opened this issue Oct 25, 2016 · 3 comments
Closed

dryscrape console.log #64

JulienSoda opened this issue Oct 25, 2016 · 3 comments

Comments

@JulienSoda
Copy link

Hello, congratulation for dryscrape.

Is it possible, with dryscrape, to get console.log(), like selenium:
for entry in driver.get_log('browser'):
print(entry)

Best regards

@JulienSoda
Copy link
Author

JulienSoda commented Nov 15, 2016

I Try:

hello = sess.eval_script('console.log("Hello World1");')
print(hello)
hello2 = sess.eval_script('document.write("Hello World2");')
print(hello2)

But no result:
None
None

@JulienSoda
Copy link
Author

succeded:

hello4 = sess.eval_script("function hello4(){ return 10;};hello4();")
print(hello4)

the script return: 10

@niklasb
Copy link
Owner

niklasb commented Jan 2, 2017

This is not implemented. I would be happy to consider accepting this as a pull request.

@niklasb niklasb closed this as completed Jan 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants