Class ConverterFunctions
java.lang.Object
org.openqa.selenium.bidi.ConverterFunctions
-
Method Summary
-
Method Details
-
map
Build aCommandresult mapper for the common case where the useful value is a single field of the response'sresultobject.The returned function is applied to a command's
resultvalue, whichConnectionhas already parsed into aMap<String, Object>. It readskeyNamefrom that map and deserializes it totypeOfXviaJson.convert(Object, Type), without re-parsing any JSON text. Both theresultand the field are required: a missingresultor anull/absent field is an error.- Parameters:
keyName- the field to read from the command'sresultobjecttypeOfX- the type to deserialize that field to (class orTypeToken)
-