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 :

126 questions
13
votes
1 answer

SlimerJS extensions.getAddons.cache.enabled

I'm having an issue running SlimerJS through CasperJS, I get the next message "1414441945905 addons.repository WARN cacheEnabled: Couldn't get pref: extensions.getAddons.cache.enabled". I have a nodejs scrapper running with CasperJS and Slimer…
XcKoN
  • 131
  • 4
9
votes
2 answers

Cant open https web using Slimerjs, casperjs, phantomjs

This is first time i cant open website using headless browser such: phantomjs, slimerjs or casperjs. I just want to open website. I just create very basic script to open the website and take screenshot. but 3 (three) of them give me blank picture. i…
plonknimbuzz
  • 2,362
  • 2
  • 15
  • 27
9
votes
2 answers

How can I maximize the browser window while running test scripts in casperjs using slimerjs

I'm unable to view the full window while running test scripts in casperjs using slimerjs engine . could any one please help me to increase the mozila browser window size
Srikanth Malyala
  • 860
  • 14
  • 23
6
votes
2 answers

CasperJS with Slimerjs - Xlib: extension "RANDR" missing on display ":99"

I am trying to running Casperjs with Slimerjs I Installed SlimerJS 0.10.2 I have installed Mozilla Firefox 45.5.1 (tried with 50 too) I have installed CasperJS 1.1.3 I have installed xvfb 1.17.4 Running on Centos 6.8 When tried to run a…
Apoleo
  • 1,217
  • 1
  • 15
  • 30
6
votes
0 answers

WebGL apps (Cesium) in headless browser with xvfb

I am trying to run Cesium (http://cesiumjs.org/) with a headless firefox. I also tried slimerjs. In both cases, I am using xvfb, and get this: [azureuser@myvm.net slimerjs-0.9.5]$ ./slimerjs test.js Script Error: uncaught exception: RuntimeError:…
Dormidont
  • 233
  • 1
  • 11
5
votes
1 answer

Download resource image files using casperjs

I read the documents and look like you need to have slimerjs http://docs.casperjs.org/en/latest/events-filters.html in order to get responseData.body from the page.resource.received event. My use case is to download the images when the page is…
HP.
  • 17,550
  • 43
  • 139
  • 240
5
votes
1 answer

slimerjs Can not resolve required module, works with phantomjs

I am trying to create a testing script so that the testers can capture some tests using standalone slimerjs 0.9.3. However when I try to require a local package that I installed(minimist in this case) via npm I get an error. File…
chris
  • 206
  • 1
  • 2
  • 7
5
votes
3 answers

What is the correct way to launch slimerjs in casperjs (with an absolute path)?

Well, i can launch slimerjs by specifying the path of the slimer.bat file : C:\bin\slimerjs\slimerjs.bat and then execute my file. But if i modify casperjs file (in bin\ ) and modify the default exec for slimer : 'env_varname':…
Fanch
  • 3,235
  • 1
  • 18
  • 50
5
votes
1 answer

SlimerJS ignore SSL errors

I'm pretty far down the path of incorporating SlimerJS into my web scrapers and I've come across an issue. One site I am working on just had their SSL certificate go invalid. Upon looking at Slimer's SSL documentation, it appears that they do not…
Sam
  • 18,756
  • 2
  • 40
  • 65
4
votes
0 answers

phantomjs screenshots of JS heavy websites

I have used different variations and suggestions from almost a dozen of answers in SO, but nothing seems to help solve this problem I'm about to explain below. There are a few sites, in which phantomjs screenshots look bad, the content is loaded…
openrijal
  • 583
  • 6
  • 22
4
votes
0 answers

CasperJS and SlimerJS couldn't get pref: extensions.getAddons.cache.enabled

I am trying to test a navigation menu by making CasperJS to click on different parts of the menu. After the first couple of clicks Slimerjs is hanging and after 5 minutes or so I'm getting the following error: addons.repository WARN cacheEnabled:…
skywritergr
  • 148
  • 1
  • 13
4
votes
2 answers

SlimerJs PDF Render to file

I am looking at SlimerJs (v0.9.6) as an option for rendering PDFs. I have marked up the HTML that the PDF should be rendered from and I run this command to render it out: slimerjs renderPdf.js In my renderPdf.js file I have defined: var webpage =…
travega
  • 7,962
  • 16
  • 58
  • 89
4
votes
2 answers

CasperJS : dropdown list; select an option, code works in browser&slimer but not with phantom

Here my problem : I'm in a specific case where I try to set the option of a select dropdown list. I usually use this.mouse.up() + this.mouse.down() but I can't in this case because this behavior doesn't work on the website with webkit (you can…
Fanch
  • 3,235
  • 1
  • 18
  • 50
3
votes
1 answer

Issue with saving in localstorage

I saved some information in localStorage, but after restarting, my script localStorage is empty. As I understand, for every start my script creates new localStorage. Can I set path to localStorage directly? Maybe somebody knows where slimerjs saves…
Ivan Martinyuk
  • 880
  • 1
  • 7
  • 13
3
votes
3 answers

Handle download dialog box in SlimerJS

I have written a script that clicks on a link which can download a mp3 file. The problem I am facing is when the script simulates the click on that link, a download dialog box pops up like this: Download Dialog Box Now, I want to save this file to…
Akshay Bhasin
  • 157
  • 1
  • 3
  • 10
1
2 3
8 9