chrome/test/chromedriver/log_replay/client_replay.py
def SubstituteIds(self, id_map, binary, base_url="", init_session=False):
    """Replace old IDs in the given payload with ones for the current session.

    Args:
      id_map: mapping from logged IDs to current-session ones
      binary: binary to add into this command, if |init_session| is True
      base_url: base url to replace in the payload for navigation commands
      init_session: whether this payload belongs to an InitSession command.
    """
    if self.is_error or self.is_empty:
      return

    _ReplaceWindowAndElementIds(self.payload_raw, id_map)
    _ReplaceSessionId(self.payload_raw, id_map)

    if init_session:
      _ReplaceBinary(self.payload_raw, binary)

    _ReplaceUrl(self.payload_raw, base_url)
Replace old IDs in the given payload with ones for the current session.

    Args:
      id_map: mapping from logged IDs to current-session ones
      binary: binary to add into this command, if |init_session| is True
      base_url: base url to replace in the payload for navigation commands
      init_session: whether this payload belongs to an InitSession command.
    
Replace old IDs in the given payload with ones for the current session.
Replace old IDs in the given payload with ones for the current session .
def SubstituteIds(self, id_map, binary, base_url="", init_session=False):
    if self.is_error or self.is_empty:
      return
    _ReplaceWindowAndElementIds(self.payload_raw, id_map)
    _ReplaceSessionId(self.payload_raw, id_map)
    if init_session:
      _ReplaceBinary(self.payload_raw, binary)
    _ReplaceUrl(self.payload_raw, base_url)
def SubstituteIds ( self , id_map , binary , base_url = "" , init_session = False ) : if self . is_error or self . is_empty : return _ReplaceWindowAndElementIds ( self . payload_raw , id_map ) _ReplaceSessionId ( self . payload_raw , id_map ) if init_session : _ReplaceBinary ( self . payload_raw , binary ) _ReplaceUrl ( self . payload_raw , base_url )
Replace old IDs in the given payload with ones for the current session.
Replace old IDs in the given payload with ones for the current session .
"""Replace old IDs in the given payload with ones for the current session.

    Args:
      id_map: mapping from logged IDs to current-session ones
      binary: binary to add into this command, if |init_session| is True
      base_url: base url to replace in the payload for navigation commands
      init_session: whether this payload belongs to an InitSession command.
    """
self
id_map
mapping from logged IDs to current-session ones
mapping from logged IDs to current - session ones
binary
binary to add into this command, if |init_session| is True
binary to add into this command if |init_session| is True
base_url
base url to replace in the payload for navigation commands
base url to replace in the payload for navigation commands
init_session
whether this payload belongs to an InitSession command.
whether this payload belongs to an InitSession command .