Write a command for setvalue function in a webedit

Answer Posted / sudha tiwari

To set Value in edit box:
browser("name").Page("name").WebEdit("name").Set "SSSS"

To set the value of the specified property in the test
object description:
browser("name").Page("name").WebEdit
("name").SetTOProperty "propertyname, "value"

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to prepared for first for the first interview?

1792


what kind of frame work you used in your last project?

1811


How to creating an output value using quicktest professional?

540


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1342


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

1808






PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

5930


What environment does qtp run in?

617


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1834


Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also

1861


why should we give deliver good quality software?

1625


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1473


Can I change properties of a test object?

620


Explain about the test fusion report of quicktest professional?

528


How to analyzing test results using quicktest professional (qtp)?

584


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

1483