Commit b4144637 authored by khachatryan's avatar khachatryan Committed by Commit Bot

[ChromeDriver] Fix a bug in client_replay.py

Checking if log parser returns an empty value then
we should return 'command'

Change-Id: Ia6f2b583603f04183349a023365e13aceff95894
Reviewed-on: https://chromium-review.googlesource.com/c/1331950Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Artur Khachatryan <khachatryan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613154}
parent 737a81a1
...@@ -731,6 +731,8 @@ class CommandSequence(object): ...@@ -731,6 +731,8 @@ class CommandSequence(object):
self._id_map, self._binary, self._base_url) self._id_map, self._binary, self._base_url)
response = self._parser.GetNext() response = self._parser.GetNext()
if not response:
return command
if not response.IsResponse(): if not response.IsResponse():
raise ReplayException("Command and Response unexpectedly out of order.") raise ReplayException("Command and Response unexpectedly out of order.")
self._IngestLoggedResponse(response) self._IngestLoggedResponse(response)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment