Skip to content

Instantly share code, notes, and snippets.

Last active Nov 26, 2018
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