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
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..
Explain about business process component? types and usage?
What is Unicode Compatibility?
Explain advantages and disadvantages kdf?
How would you export a script from one pc to another in qtp?
How qtp identifies objects?
how to idetfy which test cases are automated?who will deside that plz tell me
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 ,
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
How QTP support all types of applications (platforms)?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
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
Limitations in QTP?
Explain the types of object repositorys in qtp?
Difference between action & Reusable action?