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


Please Help Members By Posting Answers For Below Questions

How do you create new test sets in td?

531


Difference between copy to action and call to action?

594


What is the synchronization point in qtp?

561


How to test background color and dynamic images during run time can you put the check point for moving objects?

1447


How do we analyze the checkpoint results?

583






Describe function procedure in vbscript.

551


How to create scenario selector

1481


banking domain description for software tester for interview

3469


What is the difference between run time object and test object in QTP?

566


How to use descriptive programming?

614


How can you give wait up to 10 seconds in qtp?

587


How will you find the current time of the remote machine using QTP script?

597


How you debug your script?

569


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)

1461


Explain QTP using different development techniques ?

540