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

How to do Laod testing for web based Application?

1 Answers  


what is active screen,keyboard view?

2 Answers   BirlaSoft,


What is QTP scenario.

0 Answers   Persistent,


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1 Answers   scintel,


How to pass parameters into an action.Please explain me with examples

5 Answers  






explain how to write vb script in qtp?when will you write own script?

0 Answers   FirstApex,


My Application is a client server application , but there is one functionality , when we click on one particular icon it launches web browser . When I am recording in QTP , By select approprait web add in also , it not able to record in web page , I am able to record till click on the icon. Please provide me how to over come this type of problem.

2 Answers  


If aclient comes to tester ask to bye a tool Keep aside about the cost,In what way we can choose the tool.

1 Answers  


How many regression test suits in your appliction?

2 Answers   CTS,


How can i see test results in excel sheet ? test data not present in data table.

5 Answers  


How to find operating system information using the qtp script?

0 Answers  


How do you learn the object in QTP?

2 Answers  


Categories