File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
py/selenium/webdriver/common/bidi Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments