SM hope you can help me on this
SM,
I get a problem in the line i have made bold:
InStr(pageText, "Application Type: I485") is always zero. My doubt is that PostData does not work. Let me know if I have to set up anything.
I am using a IE 5.0 and do not use a proxy server.
thanks
codex.
Do
statusURL = "https://egov.immigration.gov/graphics/cris/jsps/caseStat.jsp"
Dim PostData() As Byte
PostData = "appReceiptNum=" & in_wac & "&Submit=Search"
PostData = StrConv(PostData, vbFromUnicode)
Headers = "Content-Type: application/x-www-form-urlencoded" & vbCrLf
in_browser.Navigate statusURL, 0, "", PostData, Headers
WaitTillReady in_browser
If in_browser.Document.Location <> statusURL Then
RestartBrowser in_browser
Else
pageText = in_browser.Document.documentElement.innerText
If InStr(pageText, "Servlet Exception") > 0 Then
RestartBrowser in_browser
in_browser.Refresh
WaitTillReady in_browser
Else
If InStr(pageText, "Application Type: I485") > 0 Then
If InStr(pageText, "This case has been approved") > 0 Then