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

A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

0 Answers   TCS,


anyone can explain Diff B/w Actions and Functions

2 Answers  


what is Compile Module in QTP? what exactly it contains Functions or Actions?

2 Answers   GE,


What is the extension of script and object repositary files?

7 Answers   Maveric,


What is Virtual object wizard in QTP?

4 Answers  


Dim ExcelSheet Set ExcelSheet = CreateObject("Excel.Application") excelsheet.application.visible = true ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1" ' Save the sheet. ExcelSheet.SaveAs "C:\DOCS\TEST.XLS" ' Close Excel with the Quit method on the Application object. ExcelSheet.Application.Quit after run this script i am getting error"The test cannot continue due to unrecoverable error"

3 Answers  


what is option explicit? what is the use of it?

9 Answers   Syntel,


What is test object model in quicktest professional (qtp)?

0 Answers  


why we are using environment variables instead of global variables?

1 Answers   TCS,


Dear Friend, I am New in QTP 10 so can any one tell me how to do QTP testing on WEB APPLICATION while writing VBScript. If Possible then Give Example how to write vbscript in QTP to test WEB Apllication. Vishal Patil

2 Answers  


In Developer view it is a high priority defect & in tester view it is a low severity defect what is that how to define with an example

2 Answers   Broadridge,


In an(AUT) web application their are two frames as fraMain and fraFooter. Both the frames contain link which needs to be retrieved at a single step. I tried it using "Regular Expression" as fra.* but QTP doesn't recognize the object. So Plz help me out to get resolve the problem:-)

1 Answers  


Categories