Eingabefeld auf Homepage
30.12.2019 00:27:43
Rolf
ich möchte auf meiner Homepage ein Eingabegeld automatisch füllen und abschicken.
Leider klappt 1) der Click im Code nicht und 2) wird die automatisierte Eingabe anscheinend nicht richtig erkannt (Test: Automatisierte Eingabe händisch bestätigen).
Wenn ich das ganze manuell mache, klappt es.
Weiß jemand Rat?
VG Rolf-Jan
Sub Webcrawler()
Dim IEApp As Object
Set IEApp = CreateObject("InternetExplorer.Application")
IEApp.Visible = True
IEApp.navigate "www.price-robot.de"
Application.Wait (Time + TimeValue("00:00:10"))
Do: Loop Until IEApp.busy = False
Do: Loop Until IEApp.busy = False
Do: Loop Until IEApp.document.ReadyState = "complete"
IEApp.document.getElementByID("comp-k4rlxxdpinput").Select
IEApp.document.getElementByID("comp-k4rlxxdpinput").Value = "Test"
IEApp.document.getElementByID("comp-k4rlysbklink").Click
MsgBox ("Ende")
End Sub