dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

Firefoxdriver and ios doesn't work #157

Open Lycidias opened 9 years ago

Lycidias commented 9 years ago

Hey,

I just installed Nodejs, so it should be the newest version. Then I installed Dalek and followed the instructions from the Website.

In PhantomJs everything worked.

Firefox doesn't work correctly after instalation of firefoxdriver

When i start my test (which works with PhantomJs) with the additional parameters "-b firefox" so: dalek mytest.js -b firefox

following error appears: $ dalek mytest.js -b firefox Running tests

ERROR: dalek-browser-firefox: Error starting WebDriverServer, port 9006 in use

I googled a bit and found the fix and changed: \node_modules\dalek-browser-firefox\node_modules\portscanner\lib\portscanner.js on line 66 from 400 to 4000.

Now the test opens firefox but nothing more happens and the test doesn't run... looks like that: $ dalek mytest.js -b firefox Running tests Running Browser: Mozilla Firefox

then nothing happens and the browser window stays white..

And another litle point: The report-installation or first-use of the report tool doesn't work correct.

Here is what i did: npm install dalek-reporter-html --save-dev (installed it correctly without faults, then:)

$ dalek mytest.js -r console,html Running tests Running Browser: PhantomJS OS: windows 7 32bit Browser Version: 1.9.8

RUNNING TEST - "Page title is correct"

OPEN http://google.com

  • TITLE It has title
  • 1 Assertions run
  • TEST - "Page title is correct" SUCCEEDED

1/1 assertions passed. Elapsed Time: 1.43 sec -> Report type "html" written to "report/dalek"

ERROR: Error: ENOENT, no such file or directory 'c:\dalekjs\report\dalek\details'

So it doesn't create the folders automatically. After i created the folder report/dalek/details by hand it works..

Would be happy if you guys can help me with my Firefoxdriver! :)

Greetings

Lycidias commented 9 years ago

Update: with Firefox v.28 the test runs but doesn't work.. for example the assertion.title doesn't work.

Is there any stable Firefoxversion, where the test a) runs and b) most actions and assertions are working?

Lycidias commented 9 years ago

The ios driver doesn't seem to work. Here is the code: $ dalek mytest.js Running tests Port must be greater than 0 and less than 65536 Invalid argument for param callbackPort: undefined