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

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

for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b if u found exact answer please getback to me? raju.ippali@gmail.com 9823257761

1 Answers  


Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini

2 Answers   TCS,


What are the advantages of parameterization ?

0 Answers  


Which recording modes need more memory?

0 Answers  


Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code

2 Answers  


How to load object properties to object repository through scripting.give one example

7 Answers   IBM,


how to get no.of non empty rows in a excel sheet through vb-script

2 Answers   HP,


Can you write User defined function for WebEdit ? Note1: This function can be used for all web edits in all pages Note2: Don't use Child objects method

1 Answers   IBM,


What are the different types of action?

0 Answers  


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

0 Answers  


Can you list some technologies that support qtp?

0 Answers  


Which method do you use to retrieve data from the WebList object?

1 Answers  


Categories