can u write one user defined function for webedit class.
Answer Posted / adlajaipal
'@generic function for Webedit
'@ arguments to pass values
Function WebEdit(sValue,sItem)
set Edit=description.create()
Edit("micclass").value="webedit"
set
basepage=Browser("micclass:=Browser").page("micclass:=Page").childobjects(Edit)
sCount=basepage.count
for i=1 to sCount
Edit=basepage(i).getroproperty("name")
if sValue=Edit then
basepage(i).set sItem
exit for
end if
next
end function
'@ call
WebEdit "Editbox name", "value of edit box"
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Give me some real time point of way where exactly we can conduct audits?
explain how to write vb script in qtp?when will you write own script?
Have you done batch testing in qtp? If yes how you are doing?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.
What is the diff between image and bitmap check point?
What is data driver in qtp? Where we use it?
How do you create new test sets in td?
can any one say that where we can download the QTP trail version ??????????
What are the views available in quicktest professional (qtp)?
why text area checkpoints cannot used for web applications
Tell some commonly used Excel VBA functions?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
Hi How to retrieve data from web element line by line?
What is the recovery scenario in qtp?