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

I want different types of discriptive programming statments
coded for different types of web-objects?Give syntax and
example?

Answer Posted / srikanth

We can do 2types.
i)By creating properites through Description.create
ii) By passing properties through string arguments

i) Dim obj_desc
set obj_desc= Description.create()
obj_desc("class").value="webedit"
obj_desc("name").value="userid"
obj_desc("html tag").value= "input"
obj_desc("visible").value="True"
Browser("browser").Page("page").Webedit
("userid").set "srikanth"

ii) Browser("name:=Welcome to Gmail").Page("name:=Welcome
to Gmail").WebEdit("attachedText:=Userid").set "srikanth"

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between run time object and test object?

1118


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

2371


Explain runtime dynamic settings?

2450


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1713


How many tabs are available to view your test in a test pane and what are they?

1076


What is parameter in qtp?

1087


What are the different attribute used with regular expression?

979


i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click

2022


What is the use of text output value in quicktest professional?

979


how to disable the pop ups through QTP using a script

2282


What does mean by Scope of Automation?n How we defined it?

2046


What is the synchronization point in qtp?

1026


Your roles and responsibilities and daily tasks? (As automation tester)

3092


What are advantages of test automation?

1144


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

2206