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
How to use checkpoints in qtp ?
write the vb script for call to new action in qtp?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
When and why to use descriptive programming?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
How you debug your script?
Can we record an application running on a remote machine using qtp?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
images are dynamically changes how to compare two images with out using the bitmap
Step 3&4 are repeated until an the object in recognised uniquely.
What are the Application Functions available in QTP?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
How do you capture tooltip using QTP?
Give the syntax to load function at run time.