'Sleep 2 seconds for server available
WScript.Sleep 2000
ie.document.getElementByID("1_btnNext").Click
waitLoad(ie)
'Check result
if inStr(ie.document.body.innerHTML,"eligible for a TFN")Then
msg = "Passed. Record has been found."
Else
msg = "Record not found yet."
End If
WScript.Echo msg
ie.quit
set ie=nothing
'wait page load
Sub waitLoad(obj)
while obj.Busy
WScript.Sleep 5
wend
End Sub
'select value in list
Sub selectOption(objs, text)
For Each objItem in objs
if objItem.text=text then
objItem.selected = true
exit sub
end if
next
End Sub
'click link
Sub clickLink(text)
set links = ie.document.getElementsByTagName("a")
for each link in links
if link.innertext=text then
link.Click
exit for
end If
next
set links=nothing
End sub