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?

Answers were Sorted based on User's Feedback



with out object repository i need to launch IE and then navigate to a login page and then operate ..

Answer / ramanestalu dasari

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 ?    3 Yes 0 No

with out object repository i need to launch IE and then navigate to a login page and then operate ..

Answer / sonal

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

with out object repository i need to launch IE and then navigate to a login page and then operate ..

Answer / rajesh

If Browser("index:=0").Exist(1) then
hWindow = getHandleBrowser
Browser("hwnd:=" &
hWindow).Navigate("http://www.google.com")
'msgBox "Opened URL"
Browser("hwnd:=" & hWindow).Sync
wait 2
else
SystemUtil.Run "iexplore.exe",
"http://www.google.com", "", "open"
hWindow = getHandleBrowser
Browser("hwnd:=" & hWindow).Sync
End If
Browser("hwnd:=" &
hWindow).Page("title:=.*").Link("name:=Images","index:=0").Click




Function getHandleBrowser
wHandle1 = Browser("index:=0").GetROProperty("hwnd")
getHandleBrowser = wHandle1
End Function

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

If an application name is changes frequently i.e while recording it has name, in this case how does QTP handles?

1 Answers  


Check point what is how many types of checkpoint and explain

3 Answers   Accenture,


What is Regular Expressions?

2 Answers  


What is the differences between image check point and bit map check point?

0 Answers  


How to record object in runtime. I am testing one Image website in which every time image change on home page.so if i records the image list but during running image get change, and QTP gives error

1 Answers  


Where you can store check point results?

3 Answers  


How to send QTP test results to an email...(with out using Quality Center)?

11 Answers  


If you entered into yahoo mail with your valid user name and password , then you will get " welcome , username " (for example you will see , “welcome, Krishna” ) text on the top of the Inbox page , how can you test the user name is correct or not using QTP?

3 Answers   CTS,


How you can find length of array in qtp?

0 Answers  


How do function returns a value?How can we pass one function value to other function as input

3 Answers  


In an(AUT) web application their are two frames as fraMain and fraFooter. Both the frames contain link which needs to be retrieved at a single step. I tried it using "Regular Expression" as fra.* but QTP doesn't recognize the object. So Plz help me out to get resolve the problem:-)

1 Answers  


what ar the challenges do we face while testing webbased applications using the automation tool qtp or any?

4 Answers   TCS,


Categories