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

Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1386


how to download mercury qtp9.2 ny internet ?

2955


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1626


Explain actions in qtp ?

553


Why script error occur in between recording in qtp?

1764






banking domain description for software tester for interview

3467


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1684


what is Property......End Property loop? how to write sript for it in QTP

1889


Which scripting language used by quicktest professional?

526


Which functionalities of QTP used in banking project? pls any say answer?

1436


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1515


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

694


What is the recovery scenario in qtp?

566


Suppose I want fail that check point? How can you do that?

596


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1902