Closed ebebbington closed 3 years ago
I've investigated, and found that there isn't anything we can do. Thats just the nature of the API, it won't return class based objects, BUT it would return a pure object, eg something.toJson()
or { name: 2 }
.
Tested with puppeteer, and i experienced the same thing
Closing because there's nothing that we can do
Summary
What:
As it stands, you can pass a command as a string to
evaluatePage
where that command returns an object, eg:But the
value
property doesnt exist on the response. I think i've seen this before, if acommand
that returns an object is passed toRuntime.evaluate
wont return anythingWhat I propose is we investigate using
Runtime.callFunctionOn
for both strings AND functions, but this needs ot be tested to see if we cna do that. For example im thinking:Why:
I think it's just a limitation of that runtime method
Acceptance Criteria
Below is a list of tasks that must be completed before this issue can be closed.