chrome/test/chromedriver/log_replay/client_replay.py
def _IngestRealResponse(self, response):
    """Process the actual response from the previously issued command.

    Ingests the given response that came from calling the last command on
    the running ChromeDriver replay instance. This is the step where the
    session and element IDs are matched between |response| and the logged
    response.

    Args:
      response: Python dict of the real response to be analyzed for IDs.
    """
    if "value" in response and self._staged_logged_ids:
      real_ids = _GetAnyElementIds(response["value"])
      if real_ids and self._staged_logged_ids:
        for id_old, id_new in zip(self._staged_logged_ids, real_ids):
          self._id_map[id_old] = id_new
        self._staged_logged_ids = None

    # In W3C format, the http response is a single key dict,
    # where the value is None, a single value, or another dictionary
    # sessionId is contained in the nested dictionary
    if (self._staged_logged_session_id
        and "value" in response and response["value"]
        and isinstance(response["value"], dict)
        and "sessionId" in response["value"]):
      self._id_map[self._staged_logged_session_id] = (
        response["value"]["sessionId"])
      self._staged_logged_session_id = None
Process the actual response from the previously issued command.

    Ingests the given response that came from calling the last command on
    the running ChromeDriver replay instance. This is the step where the
    session and element IDs are matched between |response| and the logged
    response.

    Args:
      response: Python dict of the real response to be analyzed for IDs.
    
Process the actual response from the previously issued command.
Ingests the given response that came from calling the last command on
the running ChromeDriver replay instance. This is the step where the
session and element IDs are matched between |response| and the logged
response.
Process the actual response from the previously issued command . Ingests the given response that came from calling the last command on the running ChromeDriver replay instance . This is the step where the session and element IDs are matched between |response| and the logged response .
def _IngestRealResponse(self, response):
    if "value" in response and self._staged_logged_ids:
      real_ids = _GetAnyElementIds(response["value"])
      if real_ids and self._staged_logged_ids:
        for id_old, id_new in zip(self._staged_logged_ids, real_ids):
          self._id_map[id_old] = id_new
        self._staged_logged_ids = None
    if (self._staged_logged_session_id
        and "value" in response and response["value"]
        and isinstance(response["value"], dict)
        and "sessionId" in response["value"]):
      self._id_map[self._staged_logged_session_id] = (
        response["value"]["sessionId"])
      self._staged_logged_session_id = None
def _IngestRealResponse ( self , response ) : if "value" in response and self . _staged_logged_ids : real_ids = _GetAnyElementIds ( response [ "value" ] ) if real_ids and self . _staged_logged_ids : for id_old , id_new in zip ( self . _staged_logged_ids , real_ids ) : self . _id_map [ id_old ] = id_new self . _staged_logged_ids = None if ( self . _staged_logged_session_id and "value" in response and response [ "value" ] and isinstance ( response [ "value" ] , dict ) and "sessionId" in response [ "value" ] ) : self . _id_map [ self . _staged_logged_session_id ] = ( response [ "value" ] [ "sessionId" ] ) self . _staged_logged_session_id = None
Process the actual response from the previously issued command.
Process the actual response from the previously issued command .
"""Process the actual response from the previously issued command.

    Ingests the given response that came from calling the last command on
    the running ChromeDriver replay instance. This is the step where the
    session and element IDs are matched between |response| and the logged
    response.

    Args:
      response: Python dict of the real response to be analyzed for IDs.
    """ # In W3C format, the http response is a single key dict, # where the value is None, a single value, or another dictionary # sessionId is contained in the nested dictionary
self
response
Python dict of the real response to be analyzed for IDs.
Python dict of the real response to be analyzed for IDs .