public function __construct($json_response) { parent::__construct("No such element exception", WebDriverResponseStatus::NoSuchElement, null); $this->json_response = $json_response; }
/** * @param string $expected_tag_name * @param string $actual_tag_name */ public function __construct($expected_tag_name, $actual_tag_name) { parent::__construct(sprintf("Element should have been \"%s\" but was \"%s\"", $expected_tag_name, $actual_tag_name)); }