Local $bChooseFile = _WD_WaitElement($sSession, $_WD_LOCATOR_ByXPath,"//input[contains(@id, 'fuFileName')]", Default, Default, BitOR($_WD_OPTION_Visible, $_WD_OPTION_Enabled)) Local $iEbResult = @error MsgBox($MB_SYSTEMMODAL, "", "***Element found: " & $bChooseFile & @CRLF & "Eb error: " & $iEbResult, 18) If $iEbResult = $_WD_ERROR_Success Then Local $bChooseFile = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath,"//input[contains(@id, 'fuFileName')]", Default, Default, BitOR($_WD_OPTION_Visible, $_WD_OPTION_Enabled)) MsgBox($MB_SYSTEMMODAL, "", "***Element found: " & $bChooseFile, 8) _WD_ElementAction($sSession, $bChooseFile, 'value', "\uE006") ;;;; "Enter" does not, or 'click' $iEcResult = @error If $iEcResult > 0 Then MsgBox($MB_SYSTEMMODAL, "", "Error: " & $iEcResult, 8) EndIf EndIf