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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1795


write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading

1681


i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

1225


What are the different types of functions available in qtp and explain ?

789


In qtp, how you can remove the spaces from string?

759


Give me some real time point of way where exactly we can conduct audits?

1685


How can I check if a environment variable exist or not?

749


how to test Web application using QTP software

1531


Explain actions in qtp ?

732


What is test object?

892


What is qtpro? What is quick test pro?

813


What are the different kinds of test steps?

794


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

3012


what is review

1855


what is the difference between data driver & data driven and driver script?

2424