Skip to content

Commit 664fefd

Browse files
committed
Changed: Add support for 'displayed' option in _WD_ElementAction (BigDaddyO)
1 parent 0cc120f commit 664fefd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wd_core.au3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ Func _WD_ElementAction($sSession, $sElement, $sCommand, $sOption = '')
701701
$sCommand = StringLower($sCommand)
702702

703703
Switch $sCommand
704-
Case 'name', 'rect', 'text', 'selected', 'enabled'
704+
Case 'name', 'rect', 'text', 'selected', 'enabled', 'displayed'
705705
$sResponse = __WD_Get($_WD_BASE_URL & ":" & $_WD_PORT & "/session/" & $sSession & "/element/" & $sElement & "/" & $sCommand)
706706
$iErr = @error
707707

@@ -747,7 +747,7 @@ Func _WD_ElementAction($sSession, $sElement, $sCommand, $sOption = '')
747747
EndIf
748748

749749
Case Else
750-
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Name|Rect|Text|Selected|Enabled|Active|Attribute|Property|CSS|Clear|Click|Value) $sCommand=>" & $sCommand), 0, "")
750+
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Name|Rect|Text|Selected|Enabled|Displayed|Active|Attribute|Property|CSS|Clear|Click|Value) $sCommand=>" & $sCommand), 0, "")
751751

752752
EndSwitch
753753

0 commit comments

Comments
 (0)