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 Posted / 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 |
Post New Answer View All Answers
What do you mean by iteration?
Why is Client side image is preferred over server side image?
How to check which add-ins are associated with a test in qtp?
How to use debug tools?
What is parameter in qtp?
What is test object?
how will you check how many members visited the website www.infosys.com?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
Is any limitation to xml checkpoints?
What are the views available in qtp?
How did you resolve conflicts present in Object Repository?
How to carry out bit map check points in QTP
What are the ways you can synchronize?
How to do call a output parameter from one action to another action??/
Is it possible to switch between recording modes during a test creation?