Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What do you mean by iteration?

1212


Why is Client side image is preferred over server side image?

1902


How to check which add-ins are associated with a test in qtp?

1111


How to use debug tools?

2725


What is parameter in qtp?

1087


What is test object?

1147


how will you check how many members visited the website www.infosys.com?

1920


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..

1822


Is any limitation to xml checkpoints?

1026


What are the views available in qtp?

1044


How did you resolve conflicts present in Object Repository?

2128


How to carry out bit map check points in QTP

2198


What are the ways you can synchronize?

1049


How to do call a output parameter from one action to another action??/

2371


Is it possible to switch between recording modes during a test creation?

1056