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   To Refer this Site to Your Friends   Click Here
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 ?    0 Yes 0 No
Ramanestalu Dasari
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What is difference b/w AOM,DOM,COM Have u ever is used ny of the models.If so why? GE1
how to create user defined functions in QTP? can any one expalin me with example.. Thanks in Advance for help  2
How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.  1
What is API Satyam1
what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description PSI-Data-Systems2
In Manual testing , can u prpare bug report in TD? TCS1
I want different types of discriptive programming statments coded for different types of web-objects?Give syntax and example?  1
What exactly is the difference among all the three recording modes. Accenture5
How to add a runtime parameter to a data sheet?  3
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?  1
hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri  7
what are the mandatory and assistive properties of objects in QTP?What is attached text?Plz assist me with proper answer. MBT4
HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............  3
wt is memory leakage? BSL5
please tell me how to identify the index of the link in the web table .links are not constant.example i want to click the link in the inbox ,search the item and click the partcular mail.(mail links count is not constant)  1
Is QTP a compiler or interpreter..? can you we execute a QTP Script file in a another system which does not have QTP installed..?? Virtusa2
How to capture dynamic objects in qtp like mark up text  1
what is object repository size? ITC-Infotech22
How to connect to data base?  2
diff between dim & redim ? in detailed? pls any one explain me?  1
 
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