Frage

I need to save the HTML in a file somewhere so it can be opened in the browser.

War es hilfreich?

Lösung

/**
 * @Then /^show me the page$/
 */
public function show_me_the_page() {

    $html = $this->getSession()->getDriver()->getContent();
    file_put_contents('/tmp/behat_page.html', $html);
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top