Привет всем, в моем небольшом приложении Access & VBA функция открывает веб-страницу, заполняет имя пользователя и пароль, а затем входит в систему.
Как я могу прочитать текстовое поле и другое содержимое с открытой веб-страницы сразу после входа в систему, а не на новой веб-странице с той же ссылкой на открытую?
Это мой код.
Поблагодарить всех
Private Sub myButton_Click()
Dim IE As Object
Dim IEDoc As HTMLDocument
Set IE = CreateObject("InternetExplorer.application")
Set IEDoc = IE.Document
IE.Navigate "https://mylogin.com"
Do While IE.Busy: DoEvents: Loop
While IE.ReadyState <> READYSTATE_COMPLETE
DoEvents
Wend
With IEDoc
.getElementsByName("userid")(0).Value = "user"
.getElementsByName("password")(0).Value = "password"
.getElementById("btn_login").Click
End With
'At this point, I would read a text field from the new opened page, after login, in the same browser (not from a new webpage with the same link)