Comments (10)
I can do it with casperjs (http://casperjs.org/) if you want . Is zombie.js mandatory for this issue ?
from gremlins.js.
no no, any headless browser will do.
from gremlins.js.
Ok, I will work on it on this week end :)
from gremlins.js.
Any benefit to using CasperJS vs PhantomJS, which seems more popular and possibly more performant?
from gremlins.js.
Casper uses Phantom, I don't see the opposition.
from gremlins.js.
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.
@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.
Thanks @mickaelandrieu I will take a look at zombie.js
from gremlins.js.
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.
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)
- Current project status HOT 4
- Example of bugs? HOT 3
- Roadmap to Gremlins.js 2.0 HOT 3
- Bug: Uncaught RangeError: Chance: Min cannot be greater than Max. HOT 4
- Bug: Input with `type="number"` breaks gremlins HOT 3
- Bug: Gremlins won't execute in Cypress test HOT 2
- Incorrect params for `customGremlin` in README HOT 2
- Command line interface? HOT 2
- How to test a website? HOT 1
- Detailed logs HOT 3
- Using Within Playwright HOT 3
- the newly opened windows also be monkey tested
- Unable to capture the result /log HOT 1
- Bug: gremlins is not defined in some page HOT 2
- Add support for right click (or in general other buttons) HOT 1
- Interactions not completely deterministic despite seeding the randomizer HOT 4
- Bug: gremlins.js aborts too early.
- Running gremlins.js on a webview
- Is there an example of successfully finding a bug or error? HOT 1
- Bug:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gremlins.js.