slimerjs | A scriptable browser like PhantomJS , based on Firefox | Test Automation library

 by   laurentj JavaScript Version: 1.0.0 License: Non-SPDX

kandi X-RAY | slimerjs Summary

kandi X-RAY | slimerjs Summary

slimerjs is a JavaScript library typically used in Automation, Test Automation, PhantomJS applications. slimerjs has no bugs, it has no vulnerabilities and it has medium support. However slimerjs has a Non-SPDX License. You can install using 'npm i slimerjs' or download it from GitHub, npm.

SlimerJS is a scriptable browser. It allows you to manipulate a web page with an external Javascript script: opening a webpage, clicking on links, modifying the content... It is useful to do functional tests, page automation, network monitoring, screen capture etc. It is a tool like PhantomJs, except that it runs Gecko instead of Webkit, and it is headless when using Firefox 56+. SlimerJS provides the same API of PhantomJS. The current version of SlimerJS is highly compatible with PhantomJS 2.1. See current release notes in docs/release-notes-*.rst, and read the compatibility table to know the implementation level.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              slimerjs has a medium active ecosystem.
              It has 2971 star(s) with 290 fork(s). There are 104 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 164 open issues and 422 have been closed. On average issues are closed in 66 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of slimerjs is 1.0.0

            kandi-Quality Quality

              slimerjs has no bugs reported.

            kandi-Security Security

              slimerjs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              slimerjs has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              slimerjs releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are available. Examples and code snippets are not available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of slimerjs
            Get all kandi verified functions for this library.

            slimerjs Key Features

            No Key Features are available at this moment for slimerjs.

            slimerjs Examples and Code Snippets

            No Code Snippets are available at this moment for slimerjs.

            Community Discussions

            QUESTION

            How to call a Meteor method from the command line
            Asked 2018-Jul-18 at 09:53

            I have a Meteor app and want to call a server method from the command line, so that I can write a bash script to perform scheduled operations.

            Is there any way to either call a method directly, or submit a form which will then trigger server-side code?

            I've tried using curl to call a method, but either it's not possible or I'm missing something basic. This doesn't work:

            ...

            ANSWER

            Answered 2018-Jul-18 at 09:53

            You could make use of the node ddp package to call the Meteor method in an own js file that you created with a specific script. From there you can pipe all outs to wherever you want.

            Let's assume the following Meteor method:

            Source https://stackoverflow.com/questions/51360603

            QUESTION

            Cant open https web using Slimerjs, casperjs, phantomjs
            Asked 2018-May-01 at 04:46

            This is first time i cant open website using headless browser such: phantomjs, slimerjs or casperjs. I just want to open website. I just create very basic script to open the website and take screenshot. but 3 (three) of them give me blank picture.

            i try using:

            ...

            ANSWER

            Answered 2018-Apr-18 at 02:04

            I experienced this issue with phantomJS and the following service args resolved it:

            Source https://stackoverflow.com/questions/49839595

            QUESTION

            How strong are CasperJS's interoperability goals?
            Asked 2018-Jan-11 at 14:03

            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 CasperJS was to be a single framework that could run the same script against either Gecko (with SlimerJS) or WebKit (with PhantomJS), and I wouldn't need to "learn" Slimer or Phantom.

            It now looks like there is limited abstraction, in which case I might as well use each underlying frameworks directly. Is the point that some abstraction is better than none, and things are likely to improve?

            I am not asking for an opinion on "which framework is better right now" or "is CasperJS good enough". I want to understand the (documented, possibly aspirational) goals of CasperJS.

            ...

            ANSWER

            Answered 2018-Jan-11 at 14:03

            From https://github.com/casperjs/casperjs/issues/1905 :

            The original goals of CasperJS is make it easier for navigation and testing. Although it is great to be able to harmonize across different browser, in practice it is really hard.

            ...

            If something you want to be done can be done directly and easily using the browser automation engine [SlimerJS or PhantomJS], then that's great and it is better to do that. If there are complicated steps of code and you find that CasperJS's API simplifies some of the hard work for you, then you can consider using CasperJS.

            Source https://stackoverflow.com/questions/48092831

            QUESTION

            Sinon with PhantomXHR - Window.sinon is undefined
            Asked 2017-Aug-11 at 04:01

            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 window.sinon is undefined. Any solution to get rid of this issue. Are PhantomXHR + sinon will support with slimerjs?

            ...

            ANSWER

            Answered 2017-Aug-11 at 04:01

            After so much struggle i have found that gloabl variable assigned to window is causing the issue.Just use sinon instead of window.sinon in phantomxhr

            Source https://stackoverflow.com/questions/45482567

            QUESTION

            Download resource image files using casperjs
            Asked 2017-Aug-07 at 22:39

            I read the documents and look like you need to have slimerjs http://docs.casperjs.org/en/latest/events-filters.html in order to get responseData.body from the page.resource.received event.

            My use case is to download the images when the page is loaded so I don't do another round trip of: get the resource JSON, download and save any image file, reload the file to check for image dimension and if too small (icons) -> eliminate.

            I am wondering if there is a better way to do this. I could in fact go do evaluate img selector but some websites use background-url css and that's tricky.

            ...

            ANSWER

            Answered 2017-Aug-07 at 22:39

            Evaluate can be tricky, but here is a possible approach : (PhantomJS Only)

            With this example theres the possibility of

            1. storing the clipRects of the images matching specific criteria for posterior page.render() of those elements into screen shot files.

            2. storing the urls of the matching resources for posterior download requests

            3. capturing the url inside 'src' attribute or the 'background-image' css property, with an attempt of also obtaining the width & height for criteria match-and-capture purposes.

            Source https://stackoverflow.com/questions/45433316

            QUESTION

            Casperjs using Slimerjs as engine error when ran on apache with shell_exec()
            Asked 2017-May-19 at 10:02

            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 slimerjs with --debug=true to see Firefox error message

            ...

            ANSWER

            Answered 2017-May-19 at 10:02

            The solution to the problem is to install xvfb on the server and then run script with : xvfb-run -a casperjs --engine=slimerjs mycasperjs_script.js The reason for this error is that you need to make slimerjs headless and Mozilla's gecko engine isn't.

            Source https://stackoverflow.com/questions/43895087

            QUESTION

            How to pass cli args in Slimerjs?
            Asked 2017-Mar-27 at 10:14

            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

            ...

            ANSWER

            Answered 2017-Mar-27 at 10:14

            SlimerJS documentation is pretty vocal about using arguments: https://docs.slimerjs.org/current/api/system.html#args

            Source https://stackoverflow.com/questions/43043527

            QUESTION

            How to run Slimmerjs in a server without opening a browser?
            Asked 2017-Mar-13 at 13:30

            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

            ...

            ANSWER

            Answered 2017-Mar-13 at 13:30

            QUESTION

            How to setup karma-slimerjs-launcher to work with Firefox 47 or newer in Jenkins?
            Asked 2017-Mar-06 at 22:33

            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 to be installed separately and SlimerJS may need to be pointed to it.

            How can that be done in Jenkins?

            ...

            ANSWER

            Answered 2017-Mar-06 at 22:33

            Considering no answer was offered, I decided to change things a bit. Instead of using karma-slimerjs-launcher, I am now using karma-firefox-launcher.

            SlimerJS 0.10.2 requires that you install Firefox yourself and point Slimer to the Firefox binary. Having that in mind, it just makes sense to use karma-firefox-launcher instead.

            1. First you will need to install Firefox. You can find the available versions here: https://ftp.mozilla.org/pub/firefox/releases/.
            2. If you are using Linux for Jenkins, go to Configure in your project and check "Start Xvfb before the build, and shut it down after." in Build Environment. Here is more about the plugin: https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin
            3. Configure browsers in karma.conf.js to user Firefox. Check more configurations here: http://karma-runner.github.io/1.0/config/configuration-file.html

            Source https://stackoverflow.com/questions/42379209

            QUESTION

            How to manage a queue in nodejs?
            Asked 2017-Jan-02 at 16:28

            I have written a script in Nodejs that takes a screenshot of websites(using slimerJs), this script takes around 10-20 seconds to complete, the problem here is the server is stalled until this script has is finished.

            ...

            ANSWER

            Answered 2017-Jan-02 at 16:28

            If I were doing the similar thing, I would try these steps.

            1.An array(a queue) to store requested info, when any request come, store those info in the array, and send back a msg to users, telling them they are in the queue, or the server is busy if there are already too many requests.

            2.Doing the screen shot job, async, but not all in the same time. You could start the job if you find the queue is empty when a new request comes, and start another recursively when you finish the last one.

            Source https://stackoverflow.com/questions/41424167

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install slimerjs

            See documentation into the docs/ directory into the source code, or read it on the web site.

            Support

            Follow us on twitter: @slimerjs. Ask your questions on the dedicated mailing list. Or discuss with us on IRC: channel #slimerjs on irc.mozilla.org.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i slimerjs

          • CLONE
          • HTTPS

            https://github.com/laurentj/slimerjs.git

          • CLI

            gh repo clone laurentj/slimerjs

          • sshUrl

            git@github.com:laurentj/slimerjs.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Test Automation Libraries

            Try Top Libraries by laurentj

            gitiwiki

            by laurentjPHP

            wikirenderer

            by laurentjPHP

            XulJsDatasource

            by laurentjJavaScript

            comete2011

            by laurentjJavaScript

            cours-git

            by laurentjJavaScript