3 ms·
The example is form filling though: await fillIn('email', 'polly@netflix.com'); await fillIn('password', '@pollyjs'); This is exactly like selenium co
by ikeboy 8y ago
The example is form filling though:
await fillIn('email', 'polly@netflix.com');
await fillIn('password', '@pollyjs');
This is exactly like selenium code I've written to login. I struggle to see the difference in purpose.
- dekz 8y ago> /* start: pseudo test code */
- tootie 8y agoThat's part of mocha or whatever. Polly is the server part.
- stephen 8y agoIn your selenium code, the browser was talking to a database. But sometimes that database is down, or really slow. Polly says "browser, don't talk to the database anymore, instead here's what the database said last time". So, yes, both Selenium and Polly poke DOM elements, but Selenium stops there, where as Polly does that + as well as tricks the browser into going through the whole test without making a real call to the database (assuming it has a previous recording of "what the database said" for that test).