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

SlimerJS Click a link/button

I'm trying to click a button on a page using SlimerJS. On the SlimerJS documentation, I see sendEvent(eventType, arg1, arg2, button, modifier) which allows us to click on a given position by X and Y coordinates. (Doc here) So, I tried getting these…
user1555863
  • 2,567
  • 6
  • 35
  • 50
2
votes
2 answers

Running casperjs tests with slimerjs

I wrote a few tests with casperjs. They run just fine with phantomjs. However, when I tried to use slimerjs with the following command: casperjs --verbose --engine=slimerjs test create-project-suite.js A small window appers with the SlimerJs logo…
Ulises
  • 13,229
  • 5
  • 34
  • 50
2
votes
1 answer

phantomjs/slimerjs output to stdout empty

I've been trying to capture a sequence of pngs from a website using phantomjs or slimerjs, then send the output to /dev/stdout and pipe it to ffmpeg to make a video. Like so: phantomjs test.js | ./ffmpeg -analyzeduration 2147483647 -probesize…
zetsubou
  • 23
  • 4
2
votes
1 answer

CasperJS- Register on a site and validate the mail sent on Gmail -for both slimer and phantom-

Edit : this is the windows behaviour, with linux it just fails. First, if you succeeded navigate on gmail with casper (without random waiting time -from 20sec to 5min-), please tell me. I want to register on our site, then validate my registration…
Fanch
  • 3,274
  • 3
  • 20
  • 51
1
vote
1 answer

How to allow access to the browsers geolocation API using slimerJS?

I am trying to access a website using SlimerJS. On the website you can not proceed without allowing access to the browsers geolocation API. Its the popup that appears when to click allow. Is there any way to allow and provide a geolocation to this…
Max Golden
  • 11
  • 3
1
vote
1 answer

Get URL redirects with slimerJS and take screenshot of final URL

How can I get all the URL redirects in slimerJS and save them into an array then render a screenshot of the final URL. For example if I run red.com through slimer but it redirects through php to blue.com which then redirects again to yellow.com…
turrican_34
  • 679
  • 1
  • 7
  • 27
1
vote
1 answer

Headless browsers not honouring view port in matchMedia queries

I have been playing with phantomJS for a while and I came across problems when using it in websites that use matchMedia queries to distinguish device types. For a while I thought that was a phantom problem but it is happening with other headless…
1
vote
0 answers

Code 0xc0000005 CasperJs Phantomjs

We got this error on the command prompt "# waitForExec() tests Fatal Windows exception, code 0xc0000005. PhantomJS has crashed. Please read the bug reporting guide at and file a bug report." Can someone…
1
vote
0 answers

Get website resources

I have a task where I need to get a list of resources (and some basic information about them) for a given URL from .NET application. With both Phantomjs and Slimerjs I was able to do this (page.onResourceReceived and page.onResourceRequested),…
Kipper
  • 21
  • 8
1
vote
0 answers

Downloading file using casperjs

In a normal browser, if i click the link, the browser will open a dialog to save/open the file. How do i automate this thing using casperjs. Below is the html code
  • Export markdown file
  • after clicking on…
    Patrick
    • 53
    • 11
    1
    vote
    2 answers

    casperjs click on the second match selector

    there are some button share the same id or class that casperjs cant classify, i want to click on the second or N selector match, i can do it with: document.querySelectorAll('[id="something"]').click(); but i have to do it with the following…
    Robert Choy
    • 105
    • 1
    • 8
    1
    vote
    0 answers

    Unable to download .zip file from url with casperjs

    I've been trying to download a .zip file from a website using casperjs but it won't let me. 1) If I open the url with casper.thenOpen() it shows me the typical download dialog "Do you want to Open or save this file?", the thing is that I haven't…
    Enmanuel Duran
    • 4,988
    • 3
    • 17
    • 29
    1
    vote
    0 answers

    Error: window.sinon is undefined

    I am using casperjs which in turn runs on slimerjs along with phantomxhr. I am not sure of the support of phantomxhr with slimerjs+capserjs but I am getting 'window.sinon is undefined' error while running the code (Error at Phantomxhr.js line 124).…
    ABS
    • 61
    • 2
    • 10
    1
    vote
    0 answers

    SlimerJs - shell_exec not running xvfb-run in php5. But this is working well in putty (linux command)

    SlimerJs - Few steps Installed Done and This (xvfb-run bin/slimerjs overview.js) linux command working in terminal. But this command execute php5 via is not working. I have tried shell_exec, exec and passthru. So, please help me. Below my php code…
    senraj
    • 49
    • 3
    1
    vote
    0 answers

    CasperJS with SlimerJS under linux

    I'm trying to execute a CasperJS script using SlimerJS (My tests must check html5 video which is not available using PhantomJS). Using CasperJS on top of PhantomJS, all of my scripts work just fine, however with CasperJS on top of SlimerJS, I…
    Hawknskola
    • 99
    • 1
    • 2
    • 6
    1 2
    3
    8 9