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

Cannot run google.js example? #23

Open
felixchan opened this issue Jul 8, 2011 · 0 comments
Open

Cannot run google.js example? #23

felixchan opened this issue Jul 8, 2011 · 0 comments

Comments

@felixchan
Copy link

Hi,

I can't seem to run the example in the current version of Soda.

$ node google.js 
 getNewBrowserSession: *firefox, http://www.google.com
 open: /
 type: q, Hello World
 clickAndWait: btnG

/home/user/node_modules/soda/examples/google.js:35
    if (err) throw err;
             ^
Error: clickAndWait(btnG): Timed out after 30000ms
    at IncomingMessage.<anonymous> (/home/user/node_modules/soda/lib/soda/client.js:122:12)
    at IncomingMessage.emit (events.js:81:20)
    at HTTPParser.onMessageComplete (http.js:133:23)
    at Client.onData [as ondata] (http.js:1509:27)
    at Client._onReadable (net.js:682:27)
    at IOWatcher.onReadable [as callback] (net.js:177:10)

Here's the Selenium (latest version from their website) output of the jar


$ java -jar selenium-server-standalone-2.0.0.jar 
Jul 7, 2011 9:46:29 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
21:46:29.476 INFO - Java: Sun Microsystems Inc. 19.0-b09
21:46:29.477 INFO - OS: Linux 2.6.35-25-virtual i386
21:46:29.487 INFO - v2.0.0, with Core v2.0.0. Built from revision 12817
21:46:29.600 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
21:46:29.601 INFO - Version Jetty/5.1.x
21:46:29.601 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
21:46:29.602 INFO - Started HttpContext[/selenium-server,/selenium-server]
21:46:29.602 INFO - Started HttpContext[/,/]
21:46:29.619 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@d1e89e
21:46:29.619 INFO - Started HttpContext[/wd,/wd]
21:46:29.623 INFO - Started SocketListener on 0.0.0.0:4444
21:46:29.623 INFO - Started org.openqa.jetty.jetty.Server@1b1aa65
21:46:35.509 INFO - Checking Resource aliases
21:46:35.510 INFO - Command request: getNewBrowserSession[*firefox, http://www.google.com] on session null
21:46:35.512 INFO - creating new remote session
21:46:35.544 INFO - Allocated session c5ff0aa876664c9caefbebd877ac4455 for http://www.google.com, launching...
21:46:35.586 INFO - Preparing Firefox profile...
21:46:38.037 INFO - Launching Firefox...
21:46:40.572 INFO - Got result: OK,c5ff0aa876664c9caefbebd877ac4455 on session c5ff0aa876664c9caefbebd877ac4455
21:46:40.584 INFO - Command request: open[/, ] on session c5ff0aa876664c9caefbebd877ac4455
21:46:40.901 INFO - Got result: OK on session c5ff0aa876664c9caefbebd877ac4455
21:46:40.905 INFO - Command request: type[q, Hello World] on session c5ff0aa876664c9caefbebd877ac4455
21:46:40.943 INFO - Got result: OK on session c5ff0aa876664c9caefbebd877ac4455
21:46:40.946 INFO - Command request: clickAndWait[btnG, ] on session c5ff0aa876664c9caefbebd877ac4455
21:47:10.981 INFO - Got result: Timed out after 30000ms on session c5ff0aa876664c9caefbebd877ac4455

Any help would be appreciated.

thanks!

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