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


Please Help Members By Posting Answers For Below Questions

What is checking bitmaps?

556


What are the different recording modes?

563


Hi All, How to get repeated word in string . Thanks Balaji

942


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1467


What is Port testing. Whhen will you perform?

1499






How to find the path of folder in which the test is saved in qtp?

534


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

1747


Explain quicktest professional (qtp) testing process?

539


While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

1422


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

5890


please any one can explain the keyword driven framework. with gmail example.

1629


What is QTP and the use of QTP in TD?

602


How you know that a test case is a regression test case

3062


1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)

1729


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

709