Giter Club home page Giter Club logo

dalek-browser-firefox's People

Contributors

arian avatar asciidisco avatar bitdeli-chef avatar chprome avatar fhemberger avatar mischah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dalek-browser-firefox's Issues

Firefox: socket hang up

Hi,

I failed to run test in Firefox web browser due to

Output:
Running tests
Running Browser: Mozilla Firefox

ERROR: Error: socket hang up
ERROR: Error: socket hang up

I am using:
$ dalek -v
DalekJS CLI Tools Version: 0.0.5
DalekJS local install: 0.0.9

    "dalek-browser-firefox": "~0.0.6"

I am using firefox version: 31, but I have tried 27 with no luck as well.

Firefox (at least 26) does not work

When I install current dalek-browser-firefox I am not able to run my Test with Firefox 26. Starting tests result in:

dalek mytest.js -b firefox
Running tests
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Running Browser: Mozilla Firefox
OS:

Browser comes up, but test will not start.

Issue launching test in FF 18

Hi,

the plugin seems not working with older version of FF. Just done the example test file with FF18.

The browser window open, but anything appening after.

Regards

TypeError: Object true has no method 'substring' when using .waitFor() with firefox

Hi,

I just wanted to open a Youtube video with dalek-browser-firefox, but to be able to watch it to the end, I need .waitFor(). If I use it, the following happens:

Command with output:

dalek -b firefox youtube.js
Running tests
☁ [SYSTEM] dalek-internal-driver: Loading driver: "native"
Running Browser: Mozilla Firefox
☁ [WEBDRIVER] webdriver: 200 POST /session
☁ [WEBDRIVER] webdriver:
☁ [WEBDRIVER] webdriver: 200 POST /session/12/window/current/size
☁ [WEBDRIVER] webdriver: {"sessionId":"12","status":0,"value":true}
☁ [WEBDRIVER] webdriver: 200 GET /status
☁ [WEBDRIVER] webdriver: {"from":"0","value":{"os":{"arch":"x86_64","name":"Darwin","version":"unknown"},"build":{"revision":"unknown","time":"20140127194636","version":"27.0"}}}
OS: Darwin unknown x86_64
☁ [WEBDRIVER] webdriver: 200 GET /session/12
☁ [WEBDRIVER] webdriver: {"sessionId":"12","status":0,"value":{"appBuildId":"20140127194636","XULappId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","cssSelectorsEnabled":true,"browserName":"Firefox","handlesAlerts":false,"javascriptEnabled":true,"nativeEvents":false,"platform":"Darwin","device":"desktop","rotatable":false,"takesScreenshot":false,"version":"27.0"}}
Browser Version: 27.0

RUNNING TEST - "Video-Test"
☁ [WEBDRIVER] webdriver: 200 POST /session/11/url
☁ [WEBDRIVER] webdriver: {"sessionId":"11","status":0}
▶ OPEN http://www.youtube.com/watch?v=s_Dt-Cny3dY
TypeError: Object true has no method 'substring'
    at null.<anonymous> (/development/dalek/node_modules/dalek-browser-firefox/lib/marionette.js:214:52)
    at Array.forEach (native)
 + n/d/l/marionette.js
    at null.<anonymous> (/development/dalek/node_modules/dalek-browser-firefox/lib/marionette.js:213:32)
    at Array.forEach (native)
    at Marionette._parseRequestKey (/development/dalek/node_modules/dalek-browser-firefox/lib/marionette.js:212:25)
    at null.<anonymous> (/development/dalek/node_modules/dalek-browser-firefox/lib/marionette.js:144:25)
    at Array.forEach (native)
    at null.<anonymous> (/development/dalek/node_modules/dalek-browser-firefox/lib/marionette.js:131:34)
    at EventEmitter.emit (events.js:95:17)
    at Driver.addCommand.onRequest (/development/dalek/node_modules/dalek-browser-firefox/lib/commands/webdriver/execute.js:60:19)
    at callbacks (/development/dalek/node_modulesdalek-browser-firefox/node_modules/express/lib/router/index.js:164:37)
    at param (/development/dalek/node_modules/dalek-browser-firefox/node_modules/express/lib/router/index.js:138:11)
    at param (/development/dalek/node_modules/dalek-browser-firefox/node_modules/express/lib/router/index.js:135:11)
    at pass (/development/dalek/node_modules/dalek-browser-firefox/node_modules/express/lib/router/index.js:145:5)
    at Router._dispatch (/development/dalek/node_modules/dalek-browser-firefox/node_modules/express/lib/router/index.js:173:5)
    at Object.router (/development/dalek/node_modules/dalek-browser-firefox/node_modules/express/lib/router/index.js:33:10)
    at next (/development/dalek/node_modules/dalek-browser-firefox/node_modules/connect/lib/proto.js:193:15)
    at Object.urlencoded [as handle] (/development/dalek/node_modules/connect/lib/middleware/urlencoded.js:37:27)
    at next (/development/dalek/node_modules/dalek-browser-firefox/node_modules/connect/lib/proto.js:193:15)
    at /development/dalek/node_modules/dalek-browser-firefox/node_modules/connect/lib/middleware/json.js:81:7
    at IncomingMessage.onEnd (/development/dalek/node_modules/dalek-browser-firefox/node_modules/connect/node_modules/raw-body/index.js:113:7)
    at IncomingMessage.g (events.js:180:16)
    at IncomingMessage.emit (events.js:92:17)
    at _stream_readable.js:943:16
    at process._tickCallback (node.js:419:13)

youtube.js

module.exports = {
    'Video-Test': function (test) {
        test
            .open('http://www.youtube.com/watch?v=s_Dt-Cny3dY')
            .waitFor(function(){
                return Boolean(document.querySelector('#share-services-container'));
            }, [], 10000)
            .done();
    }
}

Dalekfile.json

{
    "logLevel": 5,
    "browsers": [{
         "firefox": {
            "binary": "/development/tcp-analysis/python-client/dalek/Firefox-27.app/Contents/MacOS/firefox"
         }
     }]
}

After removing .waitFor(function() { [...] }) from the test, everything works:

dalek -b firefox youtube.js
Running tests
☁ [SYSTEM] dalek-internal-driver: Loading driver: "native"
Running Browser: Mozilla Firefox
☁ [WEBDRIVER] webdriver: 200 POST /session
☁ [WEBDRIVER] webdriver:
☁ [WEBDRIVER] webdriver: 200 POST /session/12/window/current/size
☁ [WEBDRIVER] webdriver: {"sessionId":"12","status":0,"value":true}
☁ [WEBDRIVER] webdriver: 200 GET /status
☁ [WEBDRIVER] webdriver: {"from":"0","value":{"os":{"arch":"x86_64","name":"Darwin","version":"unknown"},"build":{"revision":"unknown","time":"20140127194636","version":"27.0"}}}
OS: Darwin unknown x86_64
☁ [WEBDRIVER] webdriver: 200 GET /session/12
☁ [WEBDRIVER] webdriver: {"sessionId":"12","status":0,"value":{"appBuildId":"20140127194636","XULappId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","cssSelectorsEnabled":true,"browserName":"Firefox","handlesAlerts":false,"javascriptEnabled":true,"nativeEvents":false,"platform":"Darwin","device":"desktop","rotatable":false,"takesScreenshot":false,"version":"27.0"}}
Browser Version: 27.0

RUNNING TEST - "Video-Test"
☁ [WEBDRIVER] webdriver: 200 POST /session/12/url
☁ [WEBDRIVER] webdriver: {"sessionId":"12","status":0}
▶ OPEN http://www.youtube.com/watch?v=s_Dt-Cny3dY
✔ 0 Assertions run
✔ TEST - "Video-Test" SUCCEEDED

 0/0 assertions passed. Elapsed Time: 1.87 sec

I'm running OS X 10.1,
DalekJS CLI Tools Version: 0.0.4,
DalekJS local install: 0.0.8,
dalek-browser-firefox: 0.0.6,
Firefox: 27.0

With the current Firefox version, dalek does not work at all:

net.js:1236
    throw new Error('Not running');
          ^

But I'm happy with 27, so the first issue would be the important one.

Regards,
Jens

Binary not found: firefox

I am using dalek-browser-firefox 0.0.5 along with dalek 0.0.8 and grunt-dalek 0.2.0
My operating system is Elementary OS and I have Firefox 25 installed :

$ which firefox
/usr/bin/firefox

When I run dalek configured for firefox :

dalek: {
    options: {
        browser: ['chrome', 'firefox']
    },
    dist: {
        src: ['client/test/**/*.js']
    }
}

I get the following error :

Warning: dalek-driver-firefox: Binary not found: firefox Use --force to continue

It looks like Dalek can't find the firefox binary.
Chrome is working perfectly

Firefox won't start on any port

Hi,

I'm trying to lunch the test with -b firefox after install and it says that port 9006 is in use. I tried changing it to 9002, still in use and after using currPorts I can see that those ports are actually not in use.

Window size

Is it possible to define window size ?

Useful fir responsive webdesign tests.

amazon example from getting started not passing in firefox

$ dalek test/my_first_test.js -b chrome,firefox -r console,html
Running tests
Running Browser: Google Chrome
OS: Mac OS X 10.9.2 x86_64
Browser Version: 34.0.1847.137

RUNNING TEST - "Amazon does its thing"
▶ OPEN http://www.amazon.com/
▶ TYPE #twotabsearchtextbox
▶ CLICK .nav-submit-input
▶ WAITFORELEMENT 
✔ TEXT 
✔ 1 Assertions run
✔ TEST - "Amazon does its thing" SUCCEEDED
Running Browser: Mozilla Firefox
OS: Darwin unknown x86_64
Browser Version: 29.0.1

RUNNING TEST - "Amazon does its thing"
▶ OPEN http://www.amazon.com/
▶ TYPE #twotabsearchtextbox
▶ CLICK .nav-submit-input
▶ WAITFORELEMENT 
✘ TEXT
0 EXPECTED: The Blues Brothers
0 FOUND: undefined
✘ TEST - "Amazon does its thing" FAILED

 1/2 assertions passed. Elapsed Time: 14.95 sec 
↝ 
Report type "html" written to "report/dalek"

where is Dalekfile?

I downloaded the codes from website of git and installed the browser plugins with the following command, The document tell me that use the browser plugin by adding a config option to the my Dalekfile, but its link warms 404...where is Dalekfile ? It's location path is? I need to creat one by myself ? so what's the filename?

firefox:aurora binary setting not working

Hi using

{
"browsers": [{
"firefox:aurora": {
"binary": "/Applications/FirefoxAurora.app/Contents/MacOS/firefox-bin"
}
}]
}

Getting the following error.

ERROR: dalek-driver-firefox: Binary not found: /Applications/FirefoxAuroraDebug.app/Contents/MacOS/firefox-bin

Seems to not be using the override. I know your working on this at the moment so thought I should point it out just in case.

Thanks for the cool project

Firefox starts but isn’t executing any tests

I’m calling my test file with:

dalek tests/firstTests.js -b firefox

Firefox (v30) starts but before executing any test the terminal is throwing the following error:

$ dalek tests/firstTests.js -b firefox
Running tests
Running Browser: Mozilla Firefox
>> ERROR: Error: socket hang up

net.js:1236
    throw new Error('Not running');
          ^
Error: Not running
    at Server.close (net.js:1236:11)
    at WebDriverServer.kill (/Users/mkuehnel/Documents/Projects/dalekjs-hackathon/node_modules/dalek-browser-firefox/lib/webdriver.js:98:17)
    at Object.FirefoxDriver.kill (/Users/mkuehnel/Documents/Projects/dalekjs-hackathon/node_modules/dalek-browser-firefox/index.js:434:28)
    at EventEmitter.emit (/Users/mkuehnel/Documents/Projects/dalekjs-hackathon/node_modules/dalekjs/node_modules/eventemitter2/lib/eventemitter2.js:312:17)
    at Object.Dalek._shutdown (/Users/mkuehnel/Documents/Projects/dalekjs-hackathon/node_modules/dalekjs/lib/dalek.js:333:24)
    at process.EventEmitter.emit (events.js:95:17)
    at process._fatalException (node.js:272:26)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.