Forum Discussion
mazhar555
14 years agoContributor
Hi, if u r using only script you can use the following code as well.
Sub Main()
Call browserLaunch()
Call ApplicationLaunch("http://www.automatedQA.com/forums")
End Sub
Sub browserLaunch()
'call TestedApps.CloseAll
Call TestedApps.IEXPLORE.Run()
Delay(5000)
End Sub
Sub ApplicationLaunch(strURL)
DIM P,PAGE
set p = Sys.Process("iexplore")
set page = p.page("*")
Call page.toURL(strURL)
page.wait
End Sub
if u define this PAGE as a global variable then you can use it anywhere in your script.
Thanks!
Sub Main()
Call browserLaunch()
Call ApplicationLaunch("http://www.automatedQA.com/forums")
End Sub
Sub browserLaunch()
'call TestedApps.CloseAll
Call TestedApps.IEXPLORE.Run()
Delay(5000)
End Sub
Sub ApplicationLaunch(strURL)
DIM P,PAGE
set p = Sys.Process("iexplore")
set page = p.page("*")
Call page.toURL(strURL)
page.wait
End Sub
if u define this PAGE as a global variable then you can use it anywhere in your script.
Thanks!
Related Content
Recent Discussions
- 50 minutes agoashly