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



how we can take data in the username field text box into variable in web application explain with..

Answer / sreeprasad

Any Application, it may be web or it may be window based

applications, we use getroproperty() method to get the data

from the Editbox.Same way if u want to set the data to the

editbox we use set()method.

for example:

Dim variable name

variable name = Browser(browser).page

(pagename).GetROproperty("Logical name")

if u want to print in dialogbox use msgbox()function OR

if u want to print in test result use reporter.reporter

event() function

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How u call functions in QTP Function to calculate the length of characters in a word -

5 Answers  


What is Descriptive Programing? In which cases, we will go for descriptive programing?

2 Answers   CTS,


I had created the new virtual objects for web application buttons. how to add those virtual objects into object repository. Previously i had used Gui map in winrunner for capturing virtual objects for web application. Please help me regarding this. need your answer quickly

1 Answers  


what is test data

4 Answers   Wipro,


How i can use and create Library functions in QTP and what is the proces .

2 Answers  






what is retesting?

2 Answers  


I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

0 Answers   Accenture,


how to parameterise a test with data base table or excel sheet?

1 Answers   FCG,


write qtp descriptive programming to activate multiple notepads? please urgent friends

1 Answers   TCS,


Lets say,flipkart website...in search button we have entered category[i.e watches] it displays some items...question is how to test price displayed each product is correct or not through qtp

1 Answers   Cap Gemini,


what are the disadvantages of descriptiveprograming

5 Answers   GE,


What are the various versions of QTP that have been released so far? Please also mention the year of release for each version

4 Answers  


Categories