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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you open adobe acrobat file in QTP and do some testing on that file ?

874


How many types of run modes are there in qtp?

828


How to export quicktest professional (qtp) results to an .xls file?

841


I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1946


what is run-time data?

1963


Can we create user defined functions in qtp?

788


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

827


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1894


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1718


How often were they executed?

2255


How to handle the exceptions using the recovery scenario manager in qtp?

812


how to explain a claims and insurance project?

2029


Which functionalities of QTP used in banking project? pls any say answer?

1673


Explain runtime dynamic settings?

2249


What is QTP scenario.

1943