Questions tagged [dalekjs]

DalekJS is an open source UI testing tool written in JavaScript.

DalekJS is an open source UI testing tool written in JavaScript, it will:

  1. launch & automate your browser
  2. fill & submit forms
  3. click & follow links
  4. capture screenshots
  5. run your functional tests
  6. and it works on Windows, Linux & Mac
82 questions
3
votes
1 answer

Dalekjs Changing the Firefox port from 9006

This might sound like a stupid question, but where exactly do I set the port for firefox? I tried adding the code to the config.js file in dalekjs\lib\dalek\config.js but it doesn't seem to do anything. Firefox still tries to use 9006 and…
sitesbyjoe
  • 1,831
  • 14
  • 21
3
votes
2 answers

How to set the browser language of PhantomJS

I'm using DalekJS with PhantomJS to test a web application. I have important assertions which depend on the browser language. And these fail if the language is not English. Any Ideas how I can set the default browser language of pantomjs?? Cheers…
izocan
  • 281
  • 1
  • 3
  • 14
3
votes
1 answer

dalekjs error on running any tests scripts on Ubuntu

Hi i've been using a lot of dalekjs in my companies mac, but when I try it in ubuntu I get this error when running any scripts ~/Desktop/test $ dalek test.js Running tests Running Browser: PhantomJS >> ERROR: SyntaxError: Unexpected token…
Monece Solis
  • 653
  • 1
  • 6
  • 22
3
votes
0 answers

DalekJS: Internet Explorer does not launch and the test hangs

I've been able to get DalekJS to run with Chrome. However, I am unable to have it run IE (either IE 9, or IE 10). Running in Windows: With "browser": ["chrome"] in my dalekfile: C:\web-app-testing-versioned> dalek .\test\dalek-test.js Running…
stackleit
  • 248
  • 3
  • 11
2
votes
1 answer

Internet Explorer as default browser for CasperJS

I have an website which need to be need to be tested after every deployment. To smoke test the application automatically, i thought of using casperjs.But the difficulty is that it only runs on top IE.By default casperjs only supports PhantomJS in…
Thiru Arasu
  • 49
  • 1
  • 6
2
votes
3 answers

DalekJS - ForLoop inside a test

I'm just experimenting with DalekJS, and I'm trying to get a Forloop to run... but the terminal gives me a... ERROR: Error: socket hang up... I just want to know the proper syntax for loops in DalekJS... any example would be awesome. module.exports…
2
votes
2 answers

dalekjs clicks on a link that contains text but it doesnt work

What I am trying to do is to get an element out of a list. I want to take the text in a link and click on the link if it contains the right text. this is the html-code: I need help
jordy korsten
  • 170
  • 14
2
votes
2 answers

dalekjs click on link that contains text

What i'm trying to do is to get an element out of a list. I want to take the text in a link and click on the link if it contains the right text. this is the html-code:
I need help
Sten Pelzer
  • 499
  • 2
  • 19
2
votes
1 answer

DalekJS: start browser with custom flags

Is there a way to pass flags / command line switches to the browser being used with DalekJS? Esentially, I want to use Chrome with some experimental features turned on: http://peter.sh/experiments/chromium-command-line-switches/ Vanilla CLI startup…
Razvan Caliman
  • 4,107
  • 3
  • 19
  • 24
2
votes
1 answer

how to execute external function in dalekjs .execute( )?

i want to execute an external function inside .execute() function of dalekjs. Is it possible to do that?
Pratima
  • 21
  • 3
2
votes
1 answer

DalekJS: Firefox browser opens, tests don't run

When I try to run Dalek tests in Firefox, Firefox browser only opens, but no tests are run. Anybody else run into this? Same test works fine in Chrome and PhantomJS. My test is extremely basic: dalektest.js module.exports = { "Page title is…
JyrkiS
  • 43
  • 4
1
vote
1 answer

Using Dalekjs test tool, how to select Option in Dropdown(Select element) when there is no "value" attribute in Option tag?

Lets consider below "Select" example with "value" attribute,