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


Please Help Members By Posting Answers For Below Questions

write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

1797


Explain about business process component? types and usage?

1559


What is Unicode Compatibility?

1447


Explain advantages and disadvantages kdf?

516


How would you export a script from one pc to another in qtp?

655






How qtp identifies objects?

564


how to idetfy which test cases are automated?who will deside that plz tell me

1534


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1376


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1607


How QTP support all types of applications (platforms)?

4073


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1669


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3439


Limitations in QTP?

1737


Explain the types of object repositorys in qtp?

570


Difference between action & Reusable action?

683