File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
py/selenium/webdriver/common/bidi Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1919import math
2020from dataclasses import dataclass
2121from functools import singledispatchmethod
22- from typing import Any , Optional , Union
22+ from typing import Any , Optional , List , Tuple
2323
2424from selenium .common .exceptions import WebDriverException
2525from selenium .webdriver .common .bidi .common import command_builder
@@ -255,7 +255,11 @@ def _(self, value: set):
255255 return {"type" : "set" , "value" : [self .script .convert_to_local_value (item ) for item in value ]}
256256
257257 @_type .register
258- def _ (self , value : Union [list , tuple ]):
258+ def _ (self , value : List ):
259+ return {"type" : "array" , "value" : [self .script .convert_to_local_value (item ) for item in value ]}
260+
261+ @_type .register
262+ def _ (self , value : Tuple ):
259263 return {"type" : "array" , "value" : [self .script .convert_to_local_value (item ) for item in value ]}
260264
261265 @_type .register
You can’t perform that action at this time.
0 commit comments