GithubHelp home page GithubHelp logo

Test with zombie.js about gremlins.js HOT 10 CLOSED

fzaninotto avatar fzaninotto commented on May 2, 2024
Test with zombie.js

from gremlins.js.

Comments (10)

mickaelandrieu avatar mickaelandrieu commented on May 2, 2024

I can do it with casperjs (http://casperjs.org/) if you want . Is zombie.js mandatory for this issue ?

from gremlins.js.

fzaninotto avatar fzaninotto commented on May 2, 2024

no no, any headless browser will do.

from gremlins.js.

mickaelandrieu avatar mickaelandrieu commented on May 2, 2024

Ok, I will work on it on this week end :)

from gremlins.js.

ilanbiala avatar ilanbiala commented on May 2, 2024

Any benefit to using CasperJS vs PhantomJS, which seems more popular and possibly more performant?

from gremlins.js.

fzaninotto avatar fzaninotto commented on May 2, 2024

Casper uses Phantom, I don't see the opposition.

from gremlins.js.

jhulme avatar jhulme commented on May 2, 2024

Is this still an open issue?

I have run each of the available examples (basic, TodoMVC and touch) with casperjs and no observable failures.

There is an issue with the logging output from the formFiller.js and toucher.js when passing an object to the .logger().

Casperjs returns [ object Object ] or [ HTML Object ] due to the fact that Phantomjs only supports basic strings for console logging.

Example:

gremlin toucher    multitouch at 393 37 [object Object]

from gremlins.js.

mickaelandrieu avatar mickaelandrieu commented on May 2, 2024

@jhulme you are right, but I'm not sure we have to use casperjs as this is a "maintained but not too much" project.

Also, there is a lot of better testing frameworks like zombie.js (3?) so that's why I finaly "don't" suggest any PR using casperjs.

from gremlins.js.

jhulme avatar jhulme commented on May 2, 2024

Thanks @mickaelandrieu I will take a look at zombie.js

from gremlins.js.

dbartholomae avatar dbartholomae commented on May 2, 2024

The following worked for me when running with puppeteer:

import fs from 'fs'
import { Page } from 'puppeteer'

export async function runGremlins (page: Page) {
  const gremlinsFile = require.resolve('gremlins.js/gremlins.min.js')
  const gremlins = fs.readFileSync(gremlinsFile, 'utf8')
  await page.addScriptTag({ content: gremlins })
  await page.evaluate(() => {
    // @ts-ignore
    const horde = gremlins.createHorde();
    horde.seed(1)
    horde.unleash()
    return new Promise((resolve) => {
      horde.after(resolve)
    })
  })
}

from gremlins.js.

HALLERPierre avatar HALLERPierre commented on May 2, 2024

Hey folks. The Marmelab team is attempting to clean up the Issues backlog. With that, we're closing issues that have been open for an one or more years.

We really appreciate the folks have taken the time to open and comment on this issue. Please don't confuse this closure with us not caring or dismissing your issue, feature request, discussion, or report. If the issue pertains to a bug, please re-test for the bug on the latest version of gremlins.js.

The best way to report problems with gremlins.js 2.0 is to file new issues.

from gremlins.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.