Posts: 24
Threads: 7
Joined: May 2008
Reputation:
0
05-13-2008, 11:12 AM
Hello All,
i am newbie to qtp ...
Can anyone give me a clue how to proceed on the below requirement...
when i try to run QTP...
it should prompt me a textbox(eg:- enter the URL you would like to open).
based on the text(eg:- URL name) which we enter into a text box... that particular website should open...
Thanks in advance
Navya
Posts: 159
Threads: 1
Joined: Apr 2008
Reputation:
0
Hi Navya,
This is the code you asked for
systemutil.Run inputbox("")
But usually we donot use like this in real environement..
This is the following code in the real environement
systemutil.Run "www.mail.yahoo.com","","",3
now what you have to do is highlight systemutil and press f1 then learn about that object.
Hope that is going to help you...
Regards
Sridhar
Posts: 106
Threads: 28
Joined: Jan 2008
Reputation:
0
please check your syntax you have used more than one " in systemutil.run line..Hope this was the only problem..:-)
Posts: 24
Threads: 7
Joined: May 2008
Reputation:
0
Hi niranjan
Thanks for the another solution...
Posts: 190
Threads: 2
Joined: Mar 2008
Reputation:
0
Instead of Browser("Browser").Close, try using Browser("name:=.*").Close
Posts: 50
Threads: 24
Joined: Jan 2008
Reputation:
0
Sorry I have some silly doubts about it
1) In the above script what does "name" refers to ? Is it the name of the browser... like Gmail
2) Just for closing the browser why I need to use "name:=.*"? Can you suggest some material to learn such functionalities
3) When I modified the script as you suggested I got the following error "Cannot identify the object "[ Browser ]" (of class Browser). Verify that this object's properties match an object currently displayed in your application."
Thanks,