for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Browser\Response;
use Zenstruck\Browser\Response;
/**
* @author Kevin Bond <[email protected]>
*/
class HtmlResponse extends Response
{
final public function find(string $selector): string
if (!$element = $this->session()->getPage()->find('css', $selector)) {
throw new \RuntimeException("Element \"{$selector}\" not found.");
}
return $element->getHtml();