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
0 answers

How to properly hover the mouse over an element in PhantomJS/CasperJS

In my opinion, a problem of getting dynamic content is really very ambiguous. I tried to find some useful information, used many different code examples, certainly modifying them to my purposes, but unfortunately, without any results( I need to get…
0
votes
1 answer

Slimer Js webpage evaluation

var webpage = require('webpage').create(); webpage .open('http://example.com') .then(function(){ var someContent = webpage.evaluate(function () { return document.querySelector("#aDiv").textContent; }); …
dnikitin
  • 1
  • 2
0
votes
0 answers

slimerjs Can not resolve required module encoding

I have seen slimerjs Can not resolve required module, works with phantomjs, but that one explains absolutely nothing, so I'll dare ask the question again. I have done this: $ npm install -g encoding encoding@0.1.12…
sdbbs
  • 4,270
  • 5
  • 32
  • 87
0
votes
0 answers

Proper UTF-8 for console.log with casperjs + slimerjs?

Consider the two test files below, test_load_utf8.php which is a webpage to inspect -- and test_load_utf8.js, which is a script doing the inspection of this page using casperjs with engine slimerjs (version 0.10.1-pre). You can use php -S…
sdbbs
  • 4,270
  • 5
  • 32
  • 87
0
votes
1 answer

mocha-phantomjs-core - slimerjs hangs without any error

Using mocha-phantomjs-core with slimerjs I manage to run my tests successfully from CMD: slimerjs mocha-phantomjs-core.js tests.html tap Slimerjs window opens, I see the a browser window and all seems good, but the CMD doesn't finish (seems to…
vsync
  • 118,978
  • 58
  • 307
  • 400
0
votes
0 answers

set the pageContent in node-slimerJS or for slimerJS globally

I'm trying to set the network capture content using node-slimerjs bridge for node js. What I would do using plain slimerJS is the following: page.captureContent = [/html/, /text/]; but I have to use the getter setter functions in the…
Farzan
  • 607
  • 1
  • 8
  • 27
0
votes
1 answer

In CasperJS scroll not working if we use it with PhantomJS

If we use casper without --engine=slimerjs the casper.scrollToBottom(); and casper.page.scrollPosition = {top: scrollHeight, left: 0}; is not working. I mean if we use just $ casperjs file.js it not works. But with $ casperjs --engine=slimerjs…
HappyCoder888
  • 736
  • 1
  • 8
  • 16
0
votes
0 answers

How to download file from dialog box in SlimerJS with PhantomJS?

I am using PhantomJS and SlimerJS to download a .xls file from a web. I do not have a download URL. The file is automatically generated. I tried with CasperJS and I could not. How to download this file? Example capture JPG from Dialog Box SlimerJS
0
votes
0 answers

CasperJS : Recursive casper.open failed with ajax response at the second occurrences

I am using casperJS and slimerJS engine to get videos, loaded by ajax responses. steps Get list of urls Recursive calls on casper.open for each url in the list Each casper.open call need to wait the previous casper.open send an ajax…
ElJackiste
  • 4,011
  • 5
  • 23
  • 36
0
votes
1 answer

Getting response body for AJAX requests with SlimerJS

I'm writing a test using SlimerJS for a website and need to check the response body coming from the server. I'm using the following piece of code to get the response: page.onResourceReceived = function (response) { …
Farzan
  • 607
  • 1
  • 8
  • 27
0
votes
1 answer

How can we automate browser based download window using CasperJS

i am stuck with the following scenario. the scenario is, in my web page i have some files and i need to download that one. When i click on download button it throws download window. And how to automate this thing. I am using CasperJS and…
0
votes
1 answer

unable to load webpage while using casperJS scripts on TravisCI?

I want to execute CasperJS test scripts on travisCI. I was able to install the dependencies but when I executed the script, all the tests got failed. I used below command to trigger casperjs test sudo xvfb-run -a casperjs test --engine=slimerjs…
0
votes
1 answer

Turn off slimerJs viewport

For some reason i can't use phantomJs, which does not have a rendered page view-port. How can I turn off view-port in slimerJs? one of the solutions is: var page = require('webpage').create(); page.viewportSize = {width: 0; height: 0}, but with…
0
votes
0 answers

Install and run slimer js

Can anyone please give DETAILED explanation of how to install and run slimerjs and phantom js where slimer should pop up with a window for it to prove its running state but where as before that we should include the javascript code (.js) of any web…
0
votes
1 answer

PhantomJS/SlimerJS don't find elements through document.querySelector()

For some reason querySelector and get element by class are returning null on elements that exist. PhantomJS/SlimerJS page.open('file:///Users/yeahsame/Desktop/index.html', function(status) { console.log("Starting execution"); …
ecy
  • 39
  • 1
  • 9
1 2 3
8 9