You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is perhaps more of a question than an issue, but in my project, I need to add "returnByValue": False, at around line 72 in __init__.py:
(note, I'm adding line breaks only to make it easier to read)
defevaluate(self, javascript):
""" Evaluate JavaScript on the page """returnself._send(
{"method": "Runtime.evaluate",
"params": {"expression": javascript,
"returnByValue": False}}) # <---- This bit
Without this, I don't get back the full string contents of returned data, e.g. the results of Array maps and so on. I'm happy to make a PR to make this a setting (e.g. an extra param on evaluate, with default set to True), but just wanted to find out your thoughts?
The text was updated successfully, but these errors were encountered:
This is perhaps more of a question than an issue, but in my project, I need to add
"returnByValue": False
, at around line 72 in__init__.py
:(note, I'm adding line breaks only to make it easier to read)
Without this, I don't get back the full string contents of returned data, e.g. the results of Array maps and so on. I'm happy to make a PR to make this a setting (e.g. an extra param on
evaluate
, with default set toTrue
), but just wanted to find out your thoughts?The text was updated successfully, but these errors were encountered: