I have a simple test library associated in QTP with the following function
calls:
*Function* RunMyFile(fname)
*' Execute a file*
SystemUtil.*Run* fname
*End Function*
*Function* LaunchApp(AppName)
*' Launch an application*
*InvokeApplication* AppName
*End Function*
*Function* LaunchBrowser(URL)
* ' Open browser*
Set MyBrowser = *CreateObject*("InternetExplorer.Application")
MyBrowser.Visible = *true*
MyBrowser.MenuBar = *true*
MyBrowser.Resizable = *true*
MyBrowser.FullScreen = *true*
MyBrowser.Navigate URL
launchBrowser=true
*End Function*
When calling the LaunchBrowser function [i.e. *call* LaunchBrowser(“
http://www.myurl.com”)] in a test script, a browser is launched first and
then a second browser (the one intended) with the right URL, which goes
full screen. I’ve checked in the repository and other place to see why the
first browser (one I had played with before) is still hanging around and
launches not matter what I call. If I make a script with “call RunMyFile(
“mspaint”), Paint will come after the browser runs. Where can I look to
find what’s making this launch and stop this from happening? Secondly, the
“MyBrowser.FullScreen = *true*” property executes, but then
“MyBrowser.MenuBar = *true*” does not do anything and I can’t get a menu up.
I have to *<Alt-F4>* to close the browser. Within the object, there is no
method to “maximize” and retain the menu and status bars. Any ideas? It’s
been a few years since I’ve played with QTP and I’m just now getting
re-acquainted.
Etude.
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.