Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If statement with recovery scenerio
#9
Solved: 10 Years, 9 Months, 3 Weeks ago
Hi Marie,

There is no Restart. You can increase the wait in the Exist, for example if give Exist(100), the script will wait 100 seconds and if the window appears before 100 seconds, the If condition will be sucussful and the next line of code is executed.

This should solve the problem.

Thanks
Vinod
Hi Marie,

Instead of restarting the script, you may use the below script,

Code:
URL = "www.google.com" ' Enter URL of the Application
' Open the Browser and navigate the URL
SystemUtil.Run "IExplorer",URL

Do

If Not Browser("Oracle Applications 11i").Page("Oracle Applications 11i").exist(30) Then
   ' If the Window is not displayed  close all the browsers
   SystemUtil.CloseProcessByName "Iexplore.exe"
   ' Open the Browser and navigate the URL
    SystemUtil.Run "IExplorer",URL
  Else
   ' If the Window is  displayed  then ExitTest
    ExitTest
End If
Loop

Let me know if this works for you..

Thanks
Vinod
Reply


Messages In This Thread
If statement with recovery scenerio - by Marie - 10-20-2010, 07:09 PM
RE: If statement with recovery scenerio - by KVK - 10-26-2010, 10:17 AM
RE: If statement with recovery scenerio - by KVK - 10-26-2010, 05:21 PM
RE: If statement with recovery scenerio - by KVK - 10-26-2010, 06:19 PM
RE: If statement with recovery scenerio - by KVK - 10-27-2010, 10:23 AM
RE: If statement with recovery scenerio - by KVK - 10-29-2010, 09:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  recovery elsekra 0 1,334 12-19-2008, 12:34 AM
Last Post: elsekra

Forum Jump:


Users browsing this thread: 1 Guest(s)