Timed Out Starting Navigation
644028Jul 28 2008 — edited Aug 14 2008I have VBA in a script for if the user is already logged in then VBA will log the user out and then go back to the first page to start over. Listed below are the steps, however, after this script is run once, then when I try to rerun it gets stuck on the first page and fails with "Timed Out on Starting Navigation"
I did find a workaround (listed below) with more VBA but I want to find out why this is happening and if there is any other way to work around this without adding VBA?
[b]Script Pages
1 - Direct navigation to URL
2 - Enter Login information
3 - Auto Page
4 - If user already logged in execute code below, if not then click Link
5 - Logout
VBA for User already logged in
Private Sub RSWVBAPage_beforePlay()
Dim logoutBtn As IHTMLElement
If (RSWApp.FindInHtml("Already Logged In")) Then
result = RSWApp.om.GetElementByPath("window(index=0).span(text=""Logout Now"" | index=3)", logoutBtn)
logoutBtn.click
RSWApp.GotoPage 1
End If
End Sub
VBA for workaround to make sure that first page does not fail as Timed Out Starting Navigation
Private Sub RSWVBAPage_beforePlay()
result = RSWApp.Navigate("https://aetna.test.csplans.com/csportal/welcome.do")
End Sub