Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将 HTML 保存在某个文件中,以便可以在浏览器中打开它。
/** * @Then /^show me the page$/ */ public function show_me_the_page() { $html = $this->getSession()->getDriver()->getContent(); file_put_contents('/tmp/behat_page.html', $html); }