Questions tagged [slimerjs]

SlimerJS is a scriptable browser, aiming to keep the same API as PhantomJS, but built on top of Gecko (i.e. Firefox) instead of on top of WebKit.

SlimerJS allows you to interact with a web page through external JavaScript code:

  • Opening a webpage
  • Clicking on links
  • Modifying the content...

It is useful to do functional tests, page automation, network monitoring, screen capture, etc.

SlimerJS is similar to PhantomJs, except that it runs Gecko, the browser engine of Mozilla Firefox, instead of Webkit (and it is not yet truly headless).


Resources :

124 questions
3
votes
0 answers

Casperjs doesn't execute javascript code

I have a page, and I'm referencing a bunch of scripts with regular script tag in the page's header: jQuery, etc, and my compiled script called index.js. Well the latter is big one, around 1.2M (don't ask why). My index.html seems like…
unbornchikken
  • 344
  • 2
  • 13
3
votes
1 answer

CasperJS click fails to show modal window

I am trying to write a really simple CasperJS script to test the login button on a website. After the click event, a modal window is opened on top of the website so you can fill in the login fields. Using the website, this works pretty well. Using…
teodr
  • 101
  • 2
  • 12
3
votes
2 answers

Opening local html file with SlimerJS

I have a script that works in PhantomJS but I'm trying to switch to SlimerJS. I keep getting an error when trying to open a local file: var webPage = require('webpage'); var system = require('system'); var page = webPage.create(); page.viewportSize…
stockholmux
  • 1,169
  • 11
  • 24
3
votes
2 answers

How do you set slimerjs as the engine for casperjs when using spookyjs?

I'm driving casperjs through spookyjs and I want to use slimerjs, rather than phantomjs, as the engine for casperjs. When using casperjs you set the engine when calling casperjs from the command line like this: casperjs *scriptname*…
celeritas
  • 2,191
  • 1
  • 17
  • 28
3
votes
1 answer

How to install wraith on windows 7

Does anyone knows (maybe all relevant steps) how I can run/install Wraith on Windows 7? The documentation (http://bbc-news.github.io/wraith/index.html#Installation) is unfortunately very vague. Thanks in advance Martin
MRae
  • 267
  • 5
  • 15
3
votes
1 answer

How to setup SlimerJS with CasperJS on Windows?

I put casperjs and slimerjs on a folder in my Desktop. I add these folders in my PATH. C:\Users\User1\Desktop\Bins\casperjs C:\Users\User1\Desktop\Bins\slimerjs-0.9.0 I set a new user variable SLIMERJSLAUNCHER with this as…
user3064931
  • 129
  • 3
  • 11
2
votes
2 answers

How can I prevent slimerjs browser opens when I run a script?

This is not about viewport. The viewport is ok. One thing is the viewport size of the screen, width and height, and another is the graphical interface browser (window), that is opened when you run casperjs test.js --engine=slimerjs. It's ok that…
Gerardo Cordero
  • 164
  • 4
  • 14
2
votes
1 answer

casperjs/slimerjs invalid selector in waitForSelector, which works in getElementByXPath?

I have this HTML file, test_xpath.htm:

Hello World!

sdbbs
  • 4,270
  • 5
  • 32
  • 87
2
votes
0 answers

How to call slimerJs in a python?

All the code I read on slimer seems java based. I read here that you can run slimer as a selenium driver but I have no idea how to set it in python. I tried: driver = webdriver.PhantomJS('F:\\slimer\\slimerjs.bat',service_args=service_args) It…
PercyDonovan
  • 31
  • 1
  • 4
2
votes
1 answer

Can't propagate exit code

I try to exit from the my javascript code like this: slimer.exit(1); But I don't get the 1 exit code. I try even: slimer.exit(2); I get exit code 0 forever. Any idea/help?
gran33
  • 12,421
  • 9
  • 48
  • 76
2
votes
3 answers

Unable to upgrade - slimerjs missing...?

I'm running on OSX (El Capitan) with node v5.0.0 and npm v3.3.9. if I attempt an upgrade: npm upgrade I get the error below: npm WARN deprecated lodash@0.9.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0 npm ERR! Darwin…
ekkis
  • 9,804
  • 13
  • 55
  • 105
2
votes
1 answer

PhantomJS "SSL handshake failed" on HTTPS site, even when using all the flags

PhantomJS will fail to load many HTTPS urls by default, but you can get many of them to work by adding some command line flags like --ignore-ssl-errors=true and --ssl-protocol=any. However I'm finding some sites that fail even when these flags are…
Topher Hunt
  • 4,404
  • 2
  • 27
  • 51
2
votes
1 answer

Slimerjs with exec linux centos 6

I just installed Slimerjs and no results on the web. the slimerjs is found and commands like -help etc output like they should: exec('/usr/bin/slimerjs -help'.' 2>&1',$out,$ret); but this line does not work exec('/usr/bin/slimerjs…
Tom
  • 117
  • 11
2
votes
1 answer

With Casper.js, is it possible to accept browser permission prompts?

I'm hoping to test WebRTC functionality in my web app. This requires accepting the browser's permission prompt for access to the Camera and/or Microphone. Is this possible to do with Casper.js and Slimer.js? I can't find anything in the…
Matt
  • 2,651
  • 1
  • 21
  • 28
2
votes
1 answer

How to inject external input into a SlimerJS script dynamically?

I need some help with SlimerJS. Basically my program needs to take input from stdin periodically to do the next task. The following code works well with PhantomJS+CasperJS in case of reading from an external input, but fails to do the same in…
1
2
3
8 9