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

exec js crashes nodejs on second attempt #8

Open
wayneseymour opened this issue Mar 24, 2014 · 1 comment
Open

exec js crashes nodejs on second attempt #8

wayneseymour opened this issue Mar 24, 2014 · 1 comment

Comments

@wayneseymour
Copy link

Hello there, I'm trying to exec arbitrary funcs for my purposes.
To get started I followed your docs and when I tried to exec that func more than once, node crashes back to the shell.

Note: This was in the node repl.

@wayneseymour
Copy link
Author

Error:

> browser.exec('alert("hello world!");', function() {
...   browser.dialog().text(function (text) {
.....
.....   });
... });
{ then: [Function: then],
  cancel: [Function: cancel],
  isPending: [Function: isPending] }
>
/Users/wayne/Documents/dev/repos/merlin.js/node_modules/selenium-webdriver/lib/webdriver/promise.js:1702
      throw error;
            ^
UnknownError: '[JavaScript Error: "a is null" {file: "file:///var/folders/5l/bmrx9fm93_x__j020gmq7tmr0000gn/T/anonymous8234822359118271143webdriver-profile/extensions/[email protected]/components/command_processor.js" line: 8120}]' when calling method: [nsICommandProcessor::execute]
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15'
System info: host: 'Waynes-MacBook-Pro.local', ip: '10.84.124.10', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.8.0-ea'
Driver info: driver.version: unknown
    at new bot.Error (/Users/wayne/Documents/dev/repos/merlin.js/node_modules/selenium-webdriver/lib/atoms/error.js:109:18)
    at Object.bot.response.checkResponse (/Users/wayne/Documents/dev/repos/merlin.js/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)
    at /Users/wayne/Documents/dev/repos/merlin.js/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:276:20

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

1 participant