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

how we can take data in the username field text box into
variable in web application explain with example and give
all functions to get data into variables

Answer Posted / girishkumar

example:
Dim variable name
variable name = Browser(browser).page
(pagename).webEdit(usernaem).GetROproperty(text)

in the above example, "text" is the object property which contain the data of the username field. this property will change based on the the type of class of object you selected. if you use object spy, you can get more object information in that you can select which object suitable to meet your requirement.
Ex: if you want to get data from list box, at that time you may use "items count" instead of "text".

EX:variable name = Browser(browser).page
(pagename).webList(Fly from).GetROproperty(items count)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

2448


Differentiate the type of test cases which can be automated and which cannot be automated?

1030


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

1390


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

1018


Where to use function or action?

1167


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1948


Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

2193


Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

1141


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

1250


what is object and child object.. explain ..if possible give some example for better understanding ..

1983


In qtp, how you can exit for loop?

1009


Diff b/w test scenario's and test Procedures?

2123


Diff b/w Health care domain and Banking Domain?

4691


write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading

1869


How many types of recording modes in the qtp?

1089