fix: send empty string instead of null in setValue call
MODIFY
lib/protocol/routes.js
lib/protocol/routes.js
@@ -581,7 +581,7 @@ const METHOD_MAP = {
// We want to either a value (old JSONWP) or a text (new W3C) parameter,
// but only send one of them to the command (not both).
// Prefer 'value' since it's more backward-compatible.
- makeArgs: (jsonObj) => [jsonObj.value || jsonObj.text],
+ makeArgs: (jsonObj) => [jsonObj.value ?? jsonObj.text ?? ''],
}}
},
'/session/:sessionId/appium/settings': {

fix: send empty string instead of null in setValue call (#423)