Skip to content

Commit a396527

Browse files
authored
Merge branch 'trunk' into release-preparation-4.26.0
2 parents 4698713 + f391cd0 commit a396527

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dotnet/src/webdriver/BiDi/Modules/Network/ResponseData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public record ResponseData(string Url,
1111
string StatusText,
1212
bool FromCache,
1313
IReadOnlyList<Header> Headers,
14-
string MymeType,
14+
string MimeType,
1515
long BytesReceived,
1616
long? HeadersSize,
1717
long? BodySize,

py/selenium/webdriver/common/bidi/cdp.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,19 @@ async def execute(self, cmd: typing.Generator[dict, T, typing.Any]) -> T:
211211
if self.session_id:
212212
request["sessionId"] = self.session_id
213213
request_str = json.dumps(request)
214+
if logger.isEnabledFor(logging.DEBUG):
215+
logger.debug(f"Sending CDP message: {cmd_id} {cmd_event}: {request_str}")
214216
try:
215217
await self.ws.send_message(request_str)
216218
except WsConnectionClosed as wcc:
217219
raise CdpConnectionClosed(wcc.reason) from None
218220
await cmd_event.wait()
219221
response = self.inflight_result.pop(cmd_id)
222+
if logger.isEnabledFor(logging.DEBUG):
223+
logger.debug(f"Received CDP message: {response}")
220224
if isinstance(response, Exception):
225+
if logger.isEnabledFor(logging.DEBUG):
226+
logger.debug(f"Exception raised by {cmd_event} message: {type(response).__name__}")
221227
raise response
222228
return response
223229

0 commit comments

Comments
 (0)