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
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 |
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 |
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 |
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 |
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 |
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 |
hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every time 9 th one how can i select plese help me regards balaji
PLS REAL TIMERS WRITE THE ANS FOR THIS? WHICH SCRIPT IS USED IN REAL TIME NOW A DAYS 1)SHARED REPOSITORY BASED SCRIPT 2)DESCRIPTIVE PROGRAMMING BASED SCRIPT?
Hi, My application is a web application which was developed by Java. In that application we have applets to do some operations. Is it possible to recognize applets using QTP? If yes, how? pls, help me this
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
What are the QTP advantages and disadvantages?
How do you invoke an application using the step generator in qtp?
How to suppress warnings from the test results page?
describe some problems that u had with automating testing tool?
When should I use smart identification?
We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is different)how can we handle the all the popups without using recovery scenario
What do you do if QTP doesn't recognize object ,what action should be taken
In QTP how can we recognize objects Without using Object Repository?