jellyfish icon indicating copy to clipboard operation
jellyfish copied to clipboard

createFirefox() and createChrome() fail

Open jdalton opened this issue 13 years ago • 11 comments

I'm using Cygwin and jellyfish.createFirefox() returns Caught unexpected error: Bad argument and jellyfish.createChrome() returns something about killed browser. jellyfish.createZombie() works.

jdalton avatar Mar 10 '11 23:03 jdalton

Hey, thanks for trying this out in cygwin, so far I have only been working on it in Mac and linux, but I will install it and see if I can do some debugging tonight. Most likely the browser launchers are just looking in the wrong places to find the binaries.

Adam

admc avatar Mar 10 '11 23:03 admc

I'm on Ubuntu 11.04 Natty, and Firefox 6 loads but doesn't 'go' to the site I specified. Just sits at my homepage. Using the code from jelly.io webpage. Is there support for 11.04?

wavded avatar Aug 22 '11 16:08 wavded

Is there any chance I can get you to clone the jellyfish repo and run: node test/envs/test.firefox.js

The output there should give me a better idea of what's going on.

Thanks!

admc avatar Aug 22 '11 17:08 admc

i get:

firefox : 2bddbb38-3aad-4c6e-8c11-6007f69374a3 - {"result":false,"path":"../stub/example_file.js","runTime":0}

And then it pauses and hangs there, have to stop the script with CTRL-C.

wavded avatar Aug 22 '11 18:08 wavded

if I run the app I and try to go to a site from there I get:

$ jellyfish firefox                                                                          
(firefox): browser.go('http://jelly.io');
{ startURL: 'http://jelly.io/',
  tid: 'b0002b86-6235-4410-a491-e326c183e1e1',
  tentacles: 
   { 'b0002b86-6235-4410-a491-e326c183e1e1': 
      { global: [Circular],
        process: [Object],
        GLOBAL: [Circular],
        root: [Circular],
        Buffer: [Object],
        setTimeout: [Function],
        setInterval: [Function],
        clearTimeout: [Function],
        clearInterval: [Function],
        console: [Object],
        b: [Function: TreeBuilder],
        t: [Function: HTML5Tokenizer],
        p: [Function: TrailingEndPhase],
        PHASES: [Object],
        firefox: [Function],
        chrome: [Function],
        safari: [Function],
        jellyfish: [Function],
        e: 'webdriver',
        m: '2',
        methodName: 'stop',
        encoding: 'utf8' } },
  port: 46286,
  frame: null,
  live: false,
  jfComplete: false,
  queue: 
   [ { meth: 'run',
       qid: '8aa29bb9-099d-4725-a1cd-9df85d52a6ba',
       code: 'window.location.href=\'http://jelly.io\'',
       cb: undefined } ],
  resolve: {},
  frames: {},
  config: {},
  opts: {},
  log: [ [ 'output', 'started server', 'b0002b86-6235-4410-a491-e326c183e1e1 on port 0' ] ],
  startTime: 1314036410,
  start: [Function],
  name: 'firefox',
  server: 
   { connections: 0,
     allowHalfOpen: true,
     watcher: { host: [Circular], callback: [Function] },
     _events: { request: [Function], connection: [Function: connectionListener], listening: [Function] },
     httpAllowHalfOpen: false,
     type: 'tcp4',
     fd: 5 },
  init: [Function],
  js: [Function],
  go: [Function],
  stop: [Function],
  bin: '/usr/bin/firefox',
  target: { start: [Function], stop: [Function] },
  bid: '5c24d748-f12a-4896-8313-87bd9a9762d9',
  version: 3 }

The browser doesn't go to that web page however.

wavded avatar Aug 22 '11 18:08 wavded

Thanks, ill setup ubuntu on my bigger machine when I get home and see if I can't debug it. The code for setting the firefox proxy must be broken on linux.

admc avatar Aug 22 '11 19:08 admc

ok thx!

wavded avatar Aug 22 '11 19:08 wavded

hmm odd it worked now for me. I had to update the `test.firefox.js' script to include jellyfish like this:

  , jellyfish = required('../../lib/main');

instead of

  , jellyfish = require('jellyfish');

otherwise I would get a package not found error, even if I installed jellyfish globally and did an npm install on the directory. for testing, wouldn't you want to require it the above way instead? so it relies on the package contents itself? or do you have another step I'm missing?

wavded avatar Aug 23 '11 03:08 wavded

chrome test hung for me, does jelly.io support chromium out of the box (I run that instead of straight chrome)?

wavded avatar Aug 23 '11 03:08 wavded

noticed one other thing. I believe the reason Firefox wasn't working before.

If I have no Firefox running, I see that it loads a new profile and then runs tests against that.

If I have an existing Firefox open it looks like it uses that profile and then just doesn't work.

wavded avatar Aug 23 '11 03:08 wavded

how to perform command "jellyfish count -m 22 -o output -c 3 -s 10000000 -t 32 input.fasta" of jellyfish with cygwin?

zhangjiezk avatar Dec 28 '17 02:12 zhangjiezk