HumHub Documentation (unofficial)

PageSourceSaver

Table of Contents

Methods

_savePageSource()  : mixed
Saves page source of to a file
makeHtmlSnapshot()  : mixed
Use this method within an [interactive pause](https://codeception.com/docs/02-GettingStarted#Interactive-Pause) to save the HTML source code of the current page.

Methods

_savePageSource()

Saves page source of to a file

public _savePageSource(mixed $filename) : mixed
APIYes
$this->getModule('{{MODULE_NAME}}')->_savePageSource(codecept_output_dir().'page.html');
Parameters
$filename : mixed

makeHtmlSnapshot()

Use this method within an [interactive pause](https://codeception.com/docs/02-GettingStarted#Interactive-Pause) to save the HTML source code of the current page.

public makeHtmlSnapshot([null $name = null ]) : mixed
<?php
$I->makeHtmlSnapshot('edit_page');
// saved to: tests/_output/debug/edit_page.html
$I->makeHtmlSnapshot();
// saved to: tests/_output/debug/2017-05-26_14-24-11_4b3403665fea6.html
Parameters
$name : null = null
Loading…
On this page

Search results