Skip to content

Commit c1db637

Browse files
committed
Reverted changes in py\selenium\webdriver\common\bidi\browser.py
1 parent 5eec4b8 commit c1db637

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ def from_dict(cls, data: dict) -> "ClientWindowInfo":
125125
ClientWindowInfo: A new instance of ClientWindowInfo.
126126
"""
127127
return cls(
128-
client_window=str(data.get("clientWindow", "")),
129-
state=str(data.get("state", "")),
130-
width=int(data.get("width", 0)),
131-
height=int(data.get("height", 0)),
132-
x=int(data.get("x", 0)),
133-
y=int(data.get("y", 0)),
134-
active=bool(data.get("active", False)),
128+
client_window=data.get("clientWindow"),
129+
state=data.get("state"),
130+
width=data.get("width"),
131+
height=data.get("height"),
132+
x=data.get("x"),
133+
y=data.get("y"),
134+
active=data.get("active"),
135135
)
136136

137137

@@ -188,4 +188,4 @@ def get_client_windows(self) -> list[ClientWindowInfo]:
188188
List[ClientWindowInfo]: A list of client window information.
189189
"""
190190
result = self.conn.execute(command_builder("browser.getClientWindows", {}))
191-
return [ClientWindowInfo.from_dict(window) for window in result["clientWindows"]]
191+
return [ClientWindowInfo.from_dict(window) for window in result["clientWindows"]]

0 commit comments

Comments
 (0)