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

Hi Friends, I'm new to QTP. I want to write a function in QTP for below senario. In an Excel sheet column B, I Have 10 Url/Links, and in Colum A there is a Flag as Y and N. My test should run only on those iterations which are flagged as Y. Please help, Thanks

6 Answers  


anybody wants to learn QTP with realtime implementations and complete framwork contact to this mail id ciraaj@gmail.com

1 Answers  


Can we Test Welcome Screens and Process Images with QTP

0 Answers  


can any one tell me how to select some text.i need the script for that

1 Answers  


Hi,EXCEL SHEET AND DATA TABLE . BOTH ARE SAME OR NOT?

3 Answers  






if we can find the status of script in qtp that either it's pass or fail then why we need to put this status on different excel file or log file in hybrid framework .please let me know asap thanks

1 Answers   iCreate,


Can I import a excel sheet in Action1 datatable? How?

2 Answers   IBM,


I Selected for TCS-Chennai(Contract to hire) position plz suggest me whether i have to join or not

2 Answers   TCS,


How many lines of code in each script of QTP?

0 Answers  


How to make Shared object repository in qtp 9.1 and 9.2?

2 Answers  


What is the new version of qtp which is recently released in the market?

0 Answers  


how can u find the syntax errors or other script errors in your test during the execution of your QTP Test - (i.e., not after the execution/test run finished, but before finishing the test run)

2 Answers   HCL,


Categories