def SetReplayArchivePath(self, archive_path, append_to_existing_wpr=False, make_javascript_deterministic=True): if self._wpr_server: self._wpr_server.Close() self._wpr_server = None if not archive_path: return None if self._browser_backend.wpr_mode == wpr_modes.WPR_OFF: return use_record_mode = self._browser_backend.wpr_mode == wpr_modes.WPR_RECORD if not use_record_mode: assert os.path.isfile(archive_path) self._wpr_server = wpr_server.ReplayServer( self._browser_backend, archive_path, use_record_mode, append_to_existing_wpr, make_javascript_deterministic, self._browser_backend.WEBPAGEREPLAY_HOST, self._browser_backend.webpagereplay_local_http_port, self._browser_backend.webpagereplay_local_https_port, self._browser_backend.webpagereplay_remote_http_port, self._browser_backend.webpagereplay_remote_https_port)
def SetReplayArchivePath(self, archive_path, append_to_existing_wpr=False, make_javascript_deterministic=True): if self._wpr_server: self._wpr_server.Close() self._wpr_server = None if not archive_path: return None if self._browser_backend.wpr_mode == wpr_modes.WPR_OFF: return use_record_mode = self._browser_backend.wpr_mode == wpr_modes.WPR_RECORD if not use_record_mode: assert os.path.isfile(archive_path) self._wpr_server = wpr_server.ReplayServer( self._browser_backend, archive_path, use_record_mode, append_to_existing_wpr, make_javascript_deterministic)
def SetReplayArchivePath(self, archive_path): if self._wpr_server: self._wpr_server.Close() self._wpr_server = None if not archive_path: return None if self._browser_backend.wpr_mode == wpr_modes.WPR_OFF: return use_record_mode = self._browser_backend.wpr_mode == wpr_modes.WPR_RECORD if not use_record_mode: assert os.path.isfile(archive_path) self._wpr_server = wpr_server.ReplayServer( self._browser_backend, archive_path, use_record_mode, self._browser_backend.WEBPAGEREPLAY_HOST, self._browser_backend.webpagereplay_local_http_port, self._browser_backend.webpagereplay_local_https_port, self._browser_backend.webpagereplay_remote_http_port, self._browser_backend.webpagereplay_remote_https_port)