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

Answers were Sorted based on User's Feedback



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

Answer / deeps

We use the GetROProperty method to retrieve the current
value of a test object property from run time object in
your application.

Is This Answer Correct ?    4 Yes 1 No

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

Answer / deepa

We can also use "Output Value" method to get the value into
a data table.

Is This Answer Correct ?    2 Yes 1 No

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

Answer / 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

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

Answer / sreenivas reddy

dont know abt getroproperty but to retrieve data from edit
box this is the statement ----var=browser("yahoo").page
("yahoo-login").webedit("username").getvisibletext
magbox var

Is This Answer Correct ?    2 Yes 3 No

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

Answer / hariprasad reddy

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 3 No

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

Answer / lcsekhar

i can tell you the procedure to get the data of username if
u can read properly then u might be getting the result.
just declare a variable
x=browser(browser).page(pagename).setROproperty("innertext")
msgbxo x
thats it

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More QTP Interview Questions

How many types of actions are there in quicktest professional (qtp)?

0 Answers  


How can you identify the browser and its information using QTP script?

0 Answers  


Explain the Different types of QTP test assets and their extensions?

0 Answers  


I have to automate excel features using qtp in this i need to open instance of excel in different ways like double click on file, drag & drop options, File > open option but i know the 2 ways to open the excel instance 1 is by creating the object and another is to open the excel file in already opened instance of excel through sendkeys through qtp. But i m not geting how to open excel file through double click and drag and drop option through qtp script plz help me out anyone can thanks in advance

0 Answers  


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

0 Answers  






a title of first page is "LKO- microsoft internet explorer", of the second page is "PPM- microsoft internet explorer" , of Third page is "TTS- microsoft internet explorer" and same changing title on the fourth page. How can we use regular expression for this feature what should we do on script part on and Object repository part so that we can get successful run result. Kindly explain the steps script.

2 Answers  


how to explain a claims and insurance project?

0 Answers  


I want to learn Advanced QTP, suggest me the best faculty in Hyderabad

12 Answers  


Can any one send me the QTP Basic Coding Samples?

0 Answers  


wht type of User defined functions or Java Releated functions do we write in VB scripting

0 Answers   Wipro,


How to use conditional loops in qtp ?

0 Answers  


WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

2 Answers  


Categories