You can search for the button element by it's innertext value, something like this -- Local $oButtons = _IETagNameGetCollection($oIE, "button") For $oButton In $oButtons If $oButton.innerText = "Anlage" Then _IEAction($oButton, 'click') ExitLoop EndIf Next