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 |
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.
anyone can explain Diff B/w Actions and Functions
what is Compile Module in QTP? what exactly it contains Functions or Actions?
What is the extension of script and object repositary files?
What is Virtual object wizard in QTP?
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"
what is option explicit? what is the use of it?
What is test object model in quicktest professional (qtp)?
why we are using environment variables instead of global variables?
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
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
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:-)