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

casperjs infinite loop timeout not waiting

Im using casperjs, im trying to get the content of a website that changes its values using websockets. To accomplish this, instead of adding an event listener to each value, I just want to crawl the whole website every 10 seconds. I have the…
gabriel mellace
  • 229
  • 5
  • 15
1
vote
1 answer

Passing Global Variable from One Evaluated Page to Another

So I have some code and I would like to pass a variable outside so I can evaluate another page and inject the code from the previous page. I'm not an expert here and I'm just not grasping the concept. Can anyone help me understand what I'm doing…
1
vote
1 answer

Running a SlimerJS + headless Firefox script through PHP on webserver?

On my server (Ubuntu 14.04.4 LTS), I have a Firefox installed, as well as xvfb for headless Firefox operation, and CasperJS with SlimerJS. I also have a CasperJS script which works fine. I want to utilize this script from PHP; this is the essence of…
sdbbs
  • 4,270
  • 5
  • 32
  • 87
1
vote
1 answer

Bundling code for CasperJS+SlimerJS using Browserify?

TLDR; My question is: is there a way to make browserify NOT override require with its own implementation, and instead have it use a different method name (e.g. browserifyRequire) for all of its own internal requiring. To find out why I need to do…
meetamit
  • 24,727
  • 9
  • 57
  • 68
1
vote
1 answer

SLIMERJSLAUNCHER environment variable is missing. Set it with the path to Firefox or XulRunner

everyone! When I trying to run one test in casper: casperjs --engine=slimerjs test.js and got this msg SLIMERJSLAUNCHER environment variable is missing. Set it with the path to Firefox or XulRunner XulRunner, Firefox is installed. I'm using using…
HappyCoder888
  • 736
  • 1
  • 8
  • 16
1
vote
0 answers

Changing navigator data in iframe with SlimerJS (or PhantomJS)

By one trick or another I managed to handle headers in both new windows (window.open, target=blank etc) and iframes with SlimerJS. It is also possible to change navigator data (such as navigator.appVersion) for new windows, but I'm stuck with doing…
Pingguoren
  • 31
  • 4
1
vote
0 answers

Use casperjs , phantomjs & slimerjs (headless browser) in firefox addon sdk

Is it possible to use a headless browser in firefox addon sdk ? or is there a way to use casperjs , phantomjs & slimerjs in addon code ? Thanks in advance
1
vote
0 answers

SlimerJS is not running my script

I am trying to run my CasperJS test using slimerJS, and it just do nothing, opened the FF browser and displayed the SlimerJS logo. If I am trying to run a simple script like loading of Google homepage or something it works fine. Attached the…
1
vote
0 answers

CasperJS: execution time with slimerjs is significantly lower than with PhantomJS

I have written an automated web scraping process which navigates to a series of 5 pages and scrapes the required information. I tried running the script using SlimerJS to make the debugging easy. The execution time of the entire process was less…
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104
1
vote
0 answers

SlimerJs, problems with using CLI

I want use SlimerJS with proxy, for this was a CLI options. Example: slimerjs --proxy=192.100.1.1:3129 --proxy-auth=user:pass --proxy-type=socks5 script.js but, raised Exception unknown option: --proxy=192.100.1.1:3129 OS: Windows 7 Proffesional…
Artem Chernov
  • 856
  • 2
  • 8
  • 26
1
vote
2 answers

Schedule SlimerJS task on Ubuntu

I'm attempting to set up a recurring task using SlimerJS on Ubuntu. It works standalone in the terminal via: (cd /[slimerdir]; ./slimerjs views.js) However, when I put the command into the Gnome Task Scheduler and run it, no browser window pops up.…
Optimus
  • 1,354
  • 1
  • 21
  • 40
1
vote
1 answer

slimerjs - open webpage that is passed via stdin?

Can slimerjs take a webpage as input via stdin? E.g. generateHtmlFileAndWriteToStdOut | slimerjs I want to use slimerjs in a script pipeline.
Learner
  • 2,459
  • 4
  • 23
  • 39
1
vote
1 answer

Facing issue while file uploading in casperjs

I am facing problem while uploading a file using casperjs. and below is the link of the site:http://207.140.168.200/login.R and below is the HTML content
Prateek.Naik
  • 556
  • 4
  • 18
1
vote
1 answer

SlimerJS window is not opening instead it is showing message in alertbox

We have installed slimerjs,phantomjs,casperjs on VM(we are accessing it through 'putty').When we tried to execute the casperjs test suite by following command: casperjs test --engine=slimerjs 'testsuite name' --username --password we are getting an…
GANA
  • 138
  • 8
1
vote
1 answer

CasperJS is not working filling the google search field

I'm using CasperJS (with the slimerjs engine) to fill a form. This is however not working. I tried it with a simple google.com script: var casper = require("casper").create({ verbose: true, logLevel: "debug" }); var fs =…
user429620
1 2 3
8 9