ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
with out object repository i need to launch IE and then 
navigate to a login page and then operate the objects 
within the page. How will be the script?
 Question Submitted By :: Qtprpo
I also faced this Question!!     Rank Answer Posted By  
 
  Re: with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script?
Answer
# 1
Sample code to open browser and navigate to google site and 
click on link.
------------------------------------------------------------
---------------------------------------------------------
	If Browser("index:=0").Exist(1) then
		wHandle1 = Browser("index:=0").GetROProperty
("hwnd")
		hWindow = wHandle1
		Browser("hwnd:=" & hWindow).Navigate
("http://www.google.com")
		'msgBox "Opened URL"
		Browser("hwnd:=" & hWindow).Sync
		wait 2 
	Else
		Call SystemUtil.Run
(BROWSER_EXE, "http://www.google.com", "", "open")
		wHandle1 = Browser("index:=0").GetROProperty
("hwnd")
		hWindow = wHandle1
		Browser("hwnd:=" & hWindow).Sync
	End If
 Browser("hwnd:=" & hWindow).Page("title:=.*").Link
("name:=Images","index:=0").Click
 
Is This Answer Correct ?    1 Yes 0 No
Sonal
 
  Re: with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script?
Answer
# 2
create instance object using InternetExplorer.Application

Ex: Dim IE
    set IE=createobject("InternetExplorer.Application")
    IE.navigate("www.gmail.com")
    IE.visible=True
    Browser().page().webedit().set "value"
 
Is This Answer Correct ?    1 Yes 0 No
Ramanestalu Dasari
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Diff B/w Webserver and Client Server  2
How to manage a drag drop event in the qtp  1
what is main diff of qtp8.2 and qtp9.0? Covansys1
When I start recording any web application (either Mozilla or IE) QTP recognizes window instead of browser and also it does not show all the hierarchy tree of that particular web page. 1. Window("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") 2. As everybody knows it should be browser("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") I am using the windows vista, do you think it may be a problem of my settings in QTP or problem of my installation. Your kind responses will be appreciated. Thanks in advance. Satya  7
What does VBS file contain?  1
what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance  5
i'm using QTP 8.2. A person using QTP 9.0 sends me a QTP TestScript, same when i try to open , an error comes "unexpected file format". Why?? and how to resolve the problem??  2
i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0  1
Which scripting language QTP is using?  6
.mtr ( modular test repository or mercury test repository) plz give correct answer??  3
This is the script generated by qtp plz can anyone write the same script using descriptive programming plzzzz guys do answer. Browser("orkut - login").Page("orkut - login").WebEdit ("Email").Set "rgovard" Browser("orkut - login").Page("orkut - login").WebEdit ("Passwd").SetSecure "47525d8be4926ea2f6e96b9a3f7472b6ae38" Browser("orkut - login").Page("orkut - login").WebButton ("Sign in").Click Browser("orkut - login").Page("orkut - home").Link ("Logout").Click Browser("orkut - login").Page("orkut - login").Sync Browser("orkut - login").Close  5
How to change the screen name while running the test. TCS3
I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2nd place to 3rd place Etc… in my webpage. I wanted to write script for dynamical objects like above example. Could you please send me the answer for above query. IBM9
HI ALL I AM WORKING AS A AUTOMATION ENGINEER FROM PAST 2 MONTHS IN QTP,MY QUESTION IS IF I OPEN THE BROWSER FIRST & THEN THE QTP LATER MY OBJECT SPY WILL NOT WORK,Y IT IS SO..IF U HAVE THE ANSWER PLZ MAIL ME AT AKSHAR.MYSORE@GMAIL.COM Infosys4
How to make Shared object repository in qtp 9.1 and 9.2?  2
What is SQL injection? CTS2
Give me an example where you have used a COM interface in your QTP project?  1
give one example where you have used regular expression? Ordain-Solutions6
Hi Friends, Can you please answer these questions of QTP Certification? 1.) What are bitmap checkpoints sensitive to? A. Image size and object type B. Object type and image type C. Screen resolution and object type D. Screen resolution and image size 2.)What are the phases in the QuickTest workflow? A. Plan, Record, Enhance, Run B. Prepare, Record, Verify, Run C. Plan, Create, Verify & Enhance D. Prepare, Create, Verify & Enhance, Integrate 3.) What are the two most commonly used ADO objects? A. Fields B. Execute C. Connection, RecordSet D. Open, ConnectionString 4.)What options are available to filter objects in the Target Object Repository pane when merging object repositories? A. Show all objects or Show only objects with conflicting object types B. Show all objects or Show only objects with conflicting descriptions C. Show only objects with conflicting logical names or Show only objects with conflicting object types D. Show only objects with conflicting logical names or Show only objects with conflicting descriptions 5.)Which of the following is an example of a missing resource? A. An object B. Run Results C. A Regular Action D. An External Action 6.)What method is used to retrieve the number of columns in the query results? A. Fields.Count B. Fields.Item(EOF) C. Fields.Count(BOF) D. Fields.Count.Value 7.)In VB Script functions, which one is false among the following a. Variables must be declared before use b. Variables may not be declared before use c. Variables may be declared without data types None  1
what is risks of testing a project? AppLabs4
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com