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
0
votes
1 answer

Casperjs using Slimerjs as engine error when ran on apache with shell_exec()

I get the following message in the browser but the casperjs script runs fine in the terminal ont the server. Gecko error: it seems /usr/bin/firefox is not compatible with SlimerJS. See Gecko version compatibility. If version is correct, launch…
0
votes
1 answer

How to pass cli args in Slimerjs?

I have a process in Slimerjs that I run through a child_process Nodejs and I need to pass it some arguments. I know how to use cli args with Nodejs var args = process.argv.slice(2); And also with Casper var casper =…
ackuser
  • 5,681
  • 5
  • 40
  • 48
0
votes
1 answer

How to run Slimmerjs in a server without opening a browser?

I have a process done with Slimerjs just to make a screenshot of my app. Obviously, it needs to be launched from the server but it opens a browser when I run on my own pc. How should I run it from a server in production? Thanks
ackuser
  • 5,681
  • 5
  • 40
  • 48
0
votes
1 answer

How to setup karma-slimerjs-launcher to work with Firefox 47 or newer in Jenkins?

I am looking how to get karma-slimerjs-launcher to run with a version of Firefox that supports ES6. This karma launcher uses an older version of slimerjs, while the last version, SlimerJS 0.10.2, supports Firefox 38 to 50. I see that now Firefox has…
Darlesson
  • 5,742
  • 2
  • 21
  • 26
0
votes
1 answer

How to integrate Karma with SlimerJS for testing ES6 code?

I'm trying to integrate SlimerJS with Karma to be able to test ECMAScript 6 and AngularJS code. When I tested ES6 code directly with SlimerJS it loads the version 0.10.2 that I installed and its works for my ES6 code. My Firefox installed is version…
Andre Maia
  • 152
  • 1
  • 16
0
votes
0 answers

Error executing Firefox CasperJS/SlimerJS

I'm trying to make some tests written with CasperJS run using SlimerJS, but I'm getting the follow error: I've downloaded SlimerJS by using npm install slimerjs at my project's folder, and I did configure a system variable SLIMERJSLAUNCHER pointing…
0
votes
1 answer

Set screen resolution in CapserJS/SlimerJS

Im using CasperJS 0.10.1 SlimerJS 1.1.3 Firefox 45 on CentOS 7.2 Im trying to set the window.screen properties as seen by the code below by the screenshot of the website still says 640x480 var casper = require('casper').create({ verbose: true,…
Mark Masic
  • 83
  • 1
  • 11
0
votes
0 answers

Can I use proxies ipv6 with CasperJS and SlimerJS?

I have a CasperJS Script duolingo.js and I run the script using a MeteorJS App using a Meteor Method like this: // define server methods so that the clients will have access to server components Meteor.methods({ runCasperJS: function() { //…
Gerardo Cordero
  • 164
  • 4
  • 14
0
votes
0 answers

Title and Meta Description built using AngularJS doesn't work in Social Media

Whenever I shared website link in facebook, twitter or anywhere, I get the following: {{title}} {{metadescription}} When I inspect element using Chrome, I can see the Title and Meta Description correctly. Could someone shed some light and how to…
Elaine Byene
  • 3,868
  • 12
  • 50
  • 96
0
votes
1 answer

casperjs/slimerjs: get request headers

I'm trying to do a crawler using casperjs. Some requests need raw headers edition: I have to get the raw post data, cookies, etc etc, and once I get them, I'd like to modify them (still raw) and do another request with those modified headers. But I…
0
votes
1 answer

How to use slimer.js in Travis CI?

I'm using casper.js & backstop.js in Travis CI to run tests with phantom.js. But I would prefer to use slimer.js instead of phantom.js. Is it possible to do? I tried install it with: npm install -g slimerjs and with: env: -…
gotbahn
  • 466
  • 2
  • 4
  • 18
0
votes
0 answers

How to get response body for a websocket request Using SlimerJS

I am trying to get response.body for a websocket request Using SlimerJS. Could not find an api page / blog mentioning that. Any pointers ? var page = require("webpage").create(); var url = "https://****"; page.settings.userAgent = "Mozilla/5.0…
cypher
  • 429
  • 1
  • 4
  • 16
0
votes
0 answers

How to automate writing an e-mail in Outlook.com with a properly linked URL through CasperJS

I am trying to send a new message to myself with CasperJS and I need that message contains a link . This is the little piece of code I have casper.then(function(){ this.waitForText("To", function(){ …
Gerardo Cordero
  • 164
  • 4
  • 14
0
votes
1 answer

Casperjs evaluate iteration

I want to iterate over the tr on a table using casper, but i cannot get the counter inside the evaluate function, i tried replacing the variable with a fixed number and it works. var i =0; for(i=1;i
gabriel mellace
  • 229
  • 5
  • 15
0
votes
1 answer

Filter images in loading new page with Click event in casperjs?

I'm using latest version of casperjs and slimerjs in windows 10. I create a casper instance as the following: var casper = require('casper').create({ colorizerType: 'Dummy', pageSettings: { loadImages: false, loadPlugins:…
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232
1 2 3
8 9