async def arender(self, retries: int = <NUM_LIT:8>, script: str = None, wait: float = <NUM_LIT>, scrolldown=False, sleep: int = <NUM_LIT:0>, reload: bool = True, timeout: Union[float, int] = <NUM_LIT>, keep_page: bool = False):
self.browser = await self.session.browser<EOL>content = None<EOL>if self.url == DEFAULT_URL:<EOL><INDENT>reload = False<EOL><DEDENT>for _ in range(retries):<EOL><INDENT>if not content:<EOL><INDENT>try:<EOL><INDENT>content, result, page = await self._async_render(url=self.url, script=script, sleep=sleep, wait=wait, content=self.html, reload=reload, scrolldown=scrolldown, timeout=timeout, keep_page=keep_page)<EOL><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>if not content:<EOL><INDENT>raise MaxRetries("<STR_LIT>")<EOL><DEDENT>html = HTML(url=self.url, html=content.encode(DEFAULT_ENCODING), default_encoding=DEFAULT_ENCODING)<EOL>self.__dict__.update(html.__dict__)<EOL>self.page = page<EOL>return result<EOL>
Async version of render. Takes same parameters.