Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.48 KB

File metadata and controls

71 lines (44 loc) · 1.48 KB
layout doc
title Codeception - Documentation

WebDebug Module

For additional reference, please review the source

This is a mini-module with helper actions to debug acceptance tests. Use it with Selenium, Selenium2, ZombieJS, or PhpBrowser module. Whenever none of this modules are connected the exception is thrown.

Status

Configuration:

  • disable: false (optional) - stop making dumps and screenshots. Useful when you don't need debug anymore but you don't wanna change the code of your tests.

Features

  • save screenshots of current page
  • save html (xml, json) code of current page
  • more to come...

Example configuration

{% highlight yaml %} yaml

class_name: WebGuy modules: enabled: - Selenium - WebDebug # <-- this module - WebHelper - Db config: Selenium: url: http://web.tenderway browser: firefox

{% endhighlight %}

Actions

makeAResponseDump

Saves current response content to _logs/debug/ By default a response is treated as HTML, so all stored files will have html extension

Optionally you can provide a dump name.

  • param $name

makeAScreenshot

Saves screenshot of browser window and saves to _logs/debug/

Optionally you can provide a screenshot name.

  • param $name