can u write one user defined function for webedit class.
Answer Posted / sunitha
Gneric Function for WebEdit
Values strBrow,strPAge come from object repository
Value strEditboxName is the one which we get on spying the
object and getting its property name.
Value strVal is the one which we want to set in Edit box
function fg_SetValueinEditbox
(strBrow,strPage,strEditboxName,strVal)
set oD = Description.create
oD("micclass").value = "WebEdit"
set strEbox = Browser(strBrow).Page(strPage).Chilobjects(oD)
For iCnt=0 to strEbox.count-1
strName = strEbox(iCnt).GetROProperty("name")
If strcomp(strName,strEditboxName,1) = 0 Then
strEbox(iCnt).set strVal
Exit for
End if
Next
End Function
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How do you create new test sets in td?
Difference between copy to action and call to action?
What is the synchronization point in qtp?
How to test background color and dynamic images during run time can you put the check point for moving objects?
How do we analyze the checkpoint results?
Describe function procedure in vbscript.
How to create scenario selector
banking domain description for software tester for interview
What is the difference between run time object and test object in QTP?
How to use descriptive programming?
How can you give wait up to 10 seconds in qtp?
How will you find the current time of the remote machine using QTP script?
How you debug your script?
I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)
Explain QTP using different development techniques ?