"""The duration of the request in seconds."""_render_callable:Optional[Callable[...,AsyncContextManager[Page]]]=None
[docs]defrender(self,wait_until:Literal["commit","load","domcontentloaded","networkidle"]="commit",retry:int=2,)->AsyncContextManager[Page]:"""Renders the response content in the current browser. It will look like we requested it through the browser from the beginning. Recommended to use in cases when the server returns a JS challenge instead of a response."""ifself._render_callable:returnself._render_callable(self,wait_until=wait_until,retry=retry)raiseValueError("Not set render callable for Response")