-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
I'm trying to execute examples/hello.js
example with selenium-server/chromedriver. It looks like fine, but at the end it finishes with no results. It looks like
return driver.executeScript(function () {
returns deferred object (why?), which, I suppose, must be resolved before next then
block:
results.forEach(function (result) {
but result
variable is an empty array.
When I try to debug that deferred object:
results = driver.executeScript(.....
result.then(function(r) { console.log(r); })
I get correct results.
When I use phantomjs, everething goes the same way except that the last then(function (results)
gets correct array of values and everything works fine.
Metadata
Metadata
Assignees
Labels
No labels