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

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 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain qtp(quick test professional)?

583


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

1563


When using descriptive programming?

636


Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

1184


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1283






how do u plan test automation?

1445


What is the quicktest professional (qtp) testing process?

568


What is an object repository?

610


How to save your test using quicktest professional?

536


Does QTP run in any environment?

614


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

2456


Hi Samrat, Thank u very much, what u said it is right.

1347


What is the difference between the design-time and run-time data tables?

559


What are the main differences of qtp and win runner?

595


Which environments are supported by hp qtp?

599