Skip to content

Commit 6ec0d96

Browse files
authored
Fix (_WD_ElementActionEx): Properly terminate JSON string (#69)
Fixes #68
1 parent 178a165 commit 6ec0d96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wd_helper.au3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,7 @@ Func _WD_ElementActionEx($sSession, $sElement, $sCommand, $iXOffset = Default, $
17221722
$sPostHoverAction = ',{"button":' & $iButton & ',"type":"pointerDown"}, {"button":' & $iButton & ',"type":"pointerUp"}'
17231723

17241724
; Release modifier key
1725-
$sPostAction = ',{"type": "key", "id": "keyboard_2", "actions": [{"type": "keyUp", "value": "' & $sModifier & '"}'
1725+
$sPostAction = ',{"type": "key", "id": "keyboard_2", "actions": [{"type": "keyUp", "value": "' & $sModifier & '"}]}'
17261726

17271727
Case Else
17281728
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Hover|RightClick|DoubleClick|ClickAndHold|Hide|Show|ChildCount|ModifierClick) $sCommand=>" & $sCommand), 0, "")
@@ -1755,7 +1755,7 @@ Func _WD_ElementActionEx($sSession, $sElement, $sCommand, $iXOffset = Default, $
17551755
EndIf
17561756

17571757
; Close main action
1758-
$sAction &= "]}]}"
1758+
$sAction &= "]}"
17591759

17601760
$sResult = _WD_Action($sSession, 'actions', $sAction)
17611761
$iErr = @error

0 commit comments

Comments
 (0)