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
1
vote
1 answer

How does the ClojureScript REPL via austin interact with SlimerJS and the Browser-REPL?

I'm a ClojureScript newbie using emacs, cider, cljsbuild, and austin with slimerjs on a Windows machine. I've noticed that when I start up the clojurescript repl, that the message Browser-REPL ready @ http://localhost:xxxx/yyyy/repl/start appears,…
Anonymous
  • 739
  • 7
  • 15
1
vote
1 answer

Unknown option when using CasperJS with "--ssl-protocol=tlsv1 --engine=slimerjs"

Every since the sslv3 POODLE bug came out I am unable to use casperjs with the "--engine=slimerjs" option. Before POODLE I was able to run my casperjs script like this: casperjs --engine=slimerjs script.js But after POODLE I needed to also send the…
fat fantasma
  • 7,483
  • 15
  • 48
  • 66
1
vote
1 answer

How to setup slimerjs in console on Ubuntu?

I am trying to make screenshot of webgl models with slimer.js from console I install dependencies # sudo apt-get install libc6 libstdc++6 libgcc1 libgtk2.0-0 libasound2 libxrender1 I download package for Linux x86_64 from…
SilentImp
  • 1,865
  • 1
  • 18
  • 28
1
vote
1 answer

CasperJS : assertHttpStatus() : 301 works with slimer, not with phantom

How do you check if there is a redirection with casper (+phantom) ? Try it : casper.test.begin('\n********* check 301 : ***********', function(test){ casper.start('http://www.linternaute.com/ville/rennes2/ville-35238', function(response){ …
Fanch
  • 3,274
  • 3
  • 20
  • 51
1
vote
2 answers

Re-run casperjs script

I'm relatively new to CasperJS, have wrote simple scraping scripts, and now I'm in a kind of more difficult task: I want to scrape some sort of data from a list of urls, but some pages some times "fail", I've a captcha solving service because a few…
davidaam
  • 443
  • 1
  • 8
  • 17
1
vote
1 answer

Use onAuthPrompt() with CasperJS and SlimerJS

SlimerJS added a onAuthPrompt callback. Is it possible to get it to work with CasperJS? I found mention that the phantomjs or slimerjs object is available as casper.page, and then the following answer said that casper.page is only available after…
Darren Cook
  • 27,837
  • 13
  • 117
  • 217
0
votes
0 answers

How to set a proxy when creating an instance of phantomjs

I'm trying to create an instance of phantomjs using a proxy... // require var phantom = require('webpage'); // create instance var webpage = phantom.create([`--proxy=proxy-nl.privateinternetaccess.com:1080`, `--proxy-type=socks5`,…
KBS18
  • 1
0
votes
1 answer

shell - Pass command line arguments to bash script does not work

I have a .sh script file and specifically the atguments are not going well, and I do not know the reason --engine = slimerjs and - headless #!/bin/bash xterm -e /usr/local/bin/casperjs --engine=slimerjs --headless /home/user/file.js
0
votes
0 answers

How to open slimerjs without display?

My environment: Ubuntu 16.04, slimerjs 1.0.0, firefox 58.0, root. I'm trying to execute a js-scenario, but I got an error: Error: no DISPLAY environment variable specified Got the same error in phantomjs, and it was solved by: export…
BanterFace
  • 21
  • 3
0
votes
0 answers

how to integrate the slimerjs file with the help of php

I have created a slimerjs file which is working fine when I hit the command. var page = require('webpage').create(); var url='http://localhost/slimerjs'; page.open(url, function (status) { …
blitz
  • 21
  • 2
  • 4
0
votes
0 answers

Tools to create a browser game host bot (Headless/WebRTC)

I'm planning to create a bot that manages a room of a HTML5/WebRTC browser game which should run 24/7 on my headless server. It won't be there to participate in the game but only to host a room and extend it with some useful features. But before I…
Rispa57
  • 15
  • 1
  • 6
0
votes
0 answers

What is phantomjs --wd command alternative for slimerjs?

I was using Phantomjs with Phoenix framework for test, and the package I use in phoenix is hound. I previously installed phantomjs with apt-get which was giving problems (this github comment said the installation method was the culprit), so I…
0
votes
1 answer

How strong are CasperJS's interoperability goals?

My understanding is that SlimerJS support in CasperJS is currently experimental (CasperJS 1.1.0-beta1, SlimerJS 0.8). And there are differences between the SlimerJS and CasperJS APIs. Before I found this out, I assumed that the ultimate goal of…
lofidevops
  • 15,528
  • 14
  • 79
  • 119
0
votes
1 answer

Sinon with PhantomXHR - Window.sinon is undefined

I am using CasperJS along with PhantomXHR. When I run the code in webkit version I can able to mock the response but the same script is not working in Firefox using --engine= slimerjs. It launches the Firefox browser and shows the Page error as…
Oasis
  • 480
  • 3
  • 16
0
votes
1 answer

Open pdf by link and make capture

I using casperjs, so some example: casper.start('http://lacoa.org/pdf/emergencysurvivalguide-lowres.pdf', function() { this.wait(1000, function() { casper.capture(filepath); }); }); I understand that it is a file, not a page, but…
Toxa
  • 63
  • 1
  • 7
1 2 3
8 9