setroproperty and getroproperty difference
Answer Posted / umasankar
Set brwobj=Description.Create
brwobj("micClass").value="Browser"
Set pgobj=Description.Create
pgobj("micclass").value="Page"
msgbox Browser(brwobj).page(pgobj).getroproperty("title")
Set oDesc = Description.Create
oDesc("micclass").Value = "WebEdit"
Set ObjWebElement = Browser(brwobj).Page(pgobj).ChildObjects
(oDesc)
NumberOfObjWebElement = ObjWebElement.Count()
For i = 0 To NumberOfObjWebElement - 1
varWebElement= ObjWebElement(i).getroproperty("value")
Msgbox varWebElement
Next
ObjWebElement(i).set "my Value to set"
ObjWebElement(i).type "my Value to set"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How often were they executed?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
What are the differences between quicktest professional (qtp) and winrunner?
How to use Environment parameterization? Explain with an example.
What is difference between shared and local object repository?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
What are the advantages of qtp?
How is UFT 11.5 version different from UFT 12.0?
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
What is throw object?
How do client side image and server side image work?
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
Explain the check points in quicktest professional?
What are the features and benefits of quick test pro (qtp 8.0)?
What are the benefits of quick test pro(qtp)?