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,
Let me know if this works for you..
Thanks
Vinod
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