Skip to content

Commit 38402c8

Browse files
committed
Use correct function names
1 parent 3874bb1 commit 38402c8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

wd_helper.au3

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ Func _WD_NewTab($sSession, $lSwitch = True)
5656
Local Const $sFuncName = "_WD_NewTab"
5757
Local $sTabHandle = ''
5858

59-
_WDExecuteScript($sSession, 'window.open()', '{}')
59+
_WD_ExecuteScript($sSession, 'window.open()', '{}')
6060

6161
If @error = $_WD_ERROR_Success Then
62-
Local $aHandles = _WDWindow($sSession, 'handles', '')
62+
Local $aHandles = _WD_Window($sSession, 'handles', '')
6363

6464
$sTabHandle = $aHandles[UBound($aHandles) - 1]
6565

6666
If $lSwitch Then
67-
_WDWindow($sSession, 'Switch', '{"handle":"' & $sTabHandle & '"}')
67+
_WD_Window($sSession, 'Switch', '{"handle":"' & $sTabHandle & '"}')
6868
EndIf
6969
EndIf
7070

@@ -95,25 +95,25 @@ Func _WD_Attach($sSession, $sString, $sMode = 'title')
9595
Local Const $sFuncName = "_WD_Attach"
9696
Local $sTabHandle = '', $lFound = False
9797

98-
Local $sCurrentTab = _WDWindow($sSession, 'window')
99-
Local $aHandles = _WDWindow($sSession, 'handles')
98+
Local $sCurrentTab = _WD_Window($sSession, 'window')
99+
Local $aHandles = _WD_Window($sSession, 'handles')
100100

101101
$sMode = StringLower($sMode)
102102

103103
For $sHandle In $aHandles
104104

105-
_WDWindow($sSession, 'Switch', '{"handle":"' & $sHandle & '"}')
105+
_WD_Window($sSession, 'Switch', '{"handle":"' & $sHandle & '"}')
106106

107107
Switch $sMode
108108
Case "title", "url"
109-
If StringInStr(_WDAction($sSession, $sMode), $sString) > 0 Then
109+
If StringInStr(_WD_Action($sSession, $sMode), $sString) > 0 Then
110110
$lFound = True
111111
$sTabHandle = $sHandle
112112
ExitLoop
113113
EndIf
114114

115115
Case 'html'
116-
If StringInStr(_WDGetSource($sSession), $sString) > 0 Then
116+
If StringInStr(_WD_GetSource($sSession), $sString) > 0 Then
117117
$lFound = True
118118
$sTabHandle = $sHandle
119119
ExitLoop
@@ -127,7 +127,7 @@ Func _WD_Attach($sSession, $sString, $sMode = 'title')
127127

128128
If Not $lFound Then
129129
; Restore prior active tab
130-
_WDWindow($sSession, 'Switch', '{"handle":"' & $sCurrentTab & '"}')
130+
_WD_Window($sSession, 'Switch', '{"handle":"' & $sCurrentTab & '"}')
131131
SetError(__WD_Error($sFuncName, $_WD_ERROR_NoMatch))
132132
EndIf
133133

0 commit comments

Comments
 (0)