I am trying to navigate to different websites. A couple of these websites give a certificate error. I have tried automating this process but now realize I will need user interaction. I am trying to have IE Loop until the screen shows InStr"username" then from there the automation will pick up and sign the user in.
However the code is completely skipping the loop command, and just resumes the code... Any ideas?
Code:
If InStr(oIE.Document.Body.innertext, "There is a problem with this website's security certificate.") > 0 Then
oIE.Navigate "javascript:alert('Please resolve security certificate issue.');"
DoEvents
Do While InStr(oIE.Document.Body.innertext, "Username") > 0
Loop
End If