Skip to content

Commit d980793

Browse files
committed
Misc
1 parent 9429a4c commit d980793

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

wd_core.au3

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,6 @@ Func _WD_ElementAction($sSession, $sElement, $sCommand, $sOption = '')
755755
EndIf
756756

757757
Case 'value'
758-
Local $sSplitValue = "[" & StringTrimRight(StringRegExpReplace($sOption, '.', '"$0",'), 1) & "]"
759758
Local $sSplitValue = "[" & StringTrimRight(StringRegExpReplace($sOption, '\\u[[:alnum:]]{4}|.', '"$0",'), 1) & "]"
760759

761760
$sResponse = __WD_Post($_WD_BASE_URL & ":" & $_WD_PORT & "/session/" & $sSession & "/element/" & $sElement & "/" & $sCommand, '{"id":"' & $sElement & '", "text":"' & $sOption & '", "value":' & $sSplitValue & '}')
@@ -1073,7 +1072,6 @@ Func _WD_Option($sOption, $vValue = "")
10731072
EndIf
10741073
$_WD_BFORMAT = $vValue
10751074
Case Else
1076-
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Driver|DriverParams|BaseURL|Port) $sOption=>" & $sOption), 0, 0)
10771075
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Driver|DriverParams|BaseURL|Port|BinaryFormat) $sOption=>" & $sOption), 0, 0)
10781076
EndSwitch
10791077

@@ -1255,7 +1253,6 @@ Func __WD_Post($sURL, $sData)
12551253
If @error Then
12561254
$iResult = $_WD_ERROR_SocketError
12571255
Else
1258-
$sResponseText = _WinHttpSimpleRequest($hConnect, "POST", $aURL[6], -1, $sData)
12591256
$sResponseText = _WinHttpSimpleRequest($hConnect, "POST", $aURL[6], Default, StringToBinary($sData, $_WD_BFORMAT))
12601257
$iErr = @error
12611258
$_WD_HTTPRESULT = @extended

0 commit comments

Comments
 (0)