Skip to content

Instantly share code, notes, and snippets.

@pablopaul
pablopaul / codecept.conf.js
Last active November 26, 2018 14:21
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
}
}
2019-07-30 08:09:33:814 - [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","deviceName":"iPhone X","browserName":"safari","appium:automationName":"XCUITest","bstack:options":{"deviceName":"iPhone X","realMobile":true},"acceptSslCert":false,"detected_language":"webdriver/5.11.5","browser":"iphone","browserstack.useW3C":"true","real_mobile":"true","browser_name":"safari","device":"iphone","browserstack.use_w3c":"true","browserstack.debug":"false","browserstack.tunnelIdentifier":"","platform":"MAC","os_version":"","browserstack.appiumLogs":"true","version":"","mobile":{"browser":"mobile","version":"iPhone X-11.4"},"orig_os":"ios","64bit":false,"browserstack.video":"true","browserstack.video.disableWaterMark":"true","proxy_type":"node","realMobile":"true","udid":"10b4ddc2057adff028ec5a4eaa8e2fb6f7f331fb","appium_port":8080,"automationName":"XCUITest","safariInitialUrl":"http://mobile-internet-check.browserstack.com","webkitResponseTimeout":20000,"orientation":"PORTRAIT","deviceOrientat
npx wdio ./config/browserstack/wdio.ios.browser.conf.js
Execution of 1 spec files started at 2019-07-30T08:34:48.771Z
[0-0] RUNNING in safari - /tests/specs/browser.checkbox.spec.js
[0-0] Error in "undefined"
Error: Parameters were incorrect. We wanted {"required":["type","ms"]} and you sent ["implicit","pageLoad","script"]
[0-0] FAILED in safari - /tests/specs/browser.checkbox.spec.js
"spec" Reporter:
npx wdio ./config/browserstack/wdio.ios.browser.conf.js --log-level debug
Execution of 1 spec files started at 2019-07-30T08:44:59.090Z
2019-07-30T08:44:59.093Z DEBUG @wdio/utils:initialiseServices: initialise wdio service "appium"
2019-07-30T08:44:59.104Z INFO @wdio/cli:Launcher: Run onPrepare hook
2019-07-30T08:44:59.105Z DEBUG @wdio/appium-service: Will spawn Appium process: appium
2019-07-30T08:45:02.598Z ERROR @wdio/appium-service: Appium exited before timeout (exit code: 2)
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.