Skip to content

Instantly share code, notes, and snippets.

@pablopaul pablopaul/codecept.conf.js
Last active Nov 26, 2018

Embed
What would you like to do?
CodeceptJS 1.4.6. Debug White Page Failure - To see the logged page source run your tests with "--verbose"
// Add the plugin to the CodeceptJS config
...
plugins: {
logPageSource: {
require: "./logPageSource",
enabled: true
}
}
...
const Container = require("codeceptjs").container;
const helpers = Container.helpers();
const webdriverio = helpers["WebDriverIO"];
const event = require("codeceptjs").event;
module.exports = function() {
event.dispatcher.on(event.test.after, async function(test) {
console.log(await webdriverio.grabSource());
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.