Skip to content

Commit 3b9617f

Browse files
modified file as per suggestions by Navin
1 parent 4d1dcc7 commit 3b9617f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/selenium/webdriver/common/bidi/browser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def from_dict(cls, data: dict) -> "ClientWindowInfo":
131131
ValueError: If required fields are missing or have invalid types.
132132
"""
133133
try:
134-
client_window = data("clientWindow")
134+
client_window = data["clientWindow"]
135135
if not isinstance(client_window, str):
136136
raise ValueError("clientWindow must be a string")
137137

@@ -157,7 +157,7 @@ def from_dict(cls, data: dict) -> "ClientWindowInfo":
157157
if not isinstance(y, int):
158158
raise ValueError(f"y must be an integer, got {type(y).__name__}")
159159

160-
active = data.get("active")
160+
active = data.get["active"]
161161
if not isinstance(active, bool):
162162
raise ValueError("active must be a boolean")
163163

0 commit comments

Comments
 (0)