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


Please Help Members By Posting Answers For Below Questions

Explain step generator in qtp?

641


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

580


How you can find the absolute value of the number in qtp?

518


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

562


Explain in brief about the quicktest professional automation object model?

511






What do you mean by iteration?

628


how to convert 100 into hundred repees only and viceversa

1447


What is the difference between a Function and Procedure in QTP?

675


Approach for Installation,comaptibility,system testing

1702


can the activities of test case design be automated?

1452


What is QTP testing process?

623


Can any one send me the QTP Basic Coding Samples?

1612


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

1851


What is the use of running the scripts in Hidden-mode in UFT?

680


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1603