dalekjs / dalek-browser-firefox Goto Github PK
View Code? Open in Web Editor NEW[unmaintained] Firefox Browser bindings for DalekJS
License: MIT License
[unmaintained] Firefox Browser bindings for DalekJS
License: MIT License
I stumbled across this page: http://dalekjs.com/package/dalek-browser-phantomjs/master/api/classes/Browser.PhantomJSDriver.html
and it mentions Dalekfile, even has a link to one (but the page is a 404). There is no real mention of where to put the dalekfile. I found that this question also arose in issue #3 . Would be great to add a small blurb in the config section of dalekjs.com , about both the answer to #3 and the available config switches.
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.
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.
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
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
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
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.
Is it possible to define window size ?
Useful fir responsive webdesign tests.
$ 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"
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?
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
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.