We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a87672 commit 9c04377Copy full SHA for 9c04377
py/selenium/webdriver/common/bidi/browser.py
@@ -143,9 +143,9 @@ def from_dict(cls, data: dict) -> "ClientWindowInfo":
143
if not isinstance(width, int) or width < 0:
144
raise ValueError(f"width must be a non-negative integer, got {width}")
145
146
- height = data.get("height")
147
- if not isinstance(height, int):
148
- raise ValueError("height must be an integer")
+ height = data["height"]
+ if not isinstance(height, int) or height < 0:
+ raise ValueError(f"height must be a non-negative integer, got {height}")
149
150
x = data.get("x")
151
if not isinstance(x, int):
0 commit comments