Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SETTOPROPERTY
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Rajesh,

I think you know the basic use with 'SetToProperty' (Which will set the Test Object property with user defined property) and one more thing we have to keep in mind is this will work/show affect only in that particular run (but not affect/chage the Test Object properties in OR).
Here i have taken the Google page for example:

Please open Google page and add "Google Search Edit box" to the OR and then execute the following LOC.

Code:
'This will return the name property value of Google Search editbox ("q")
msgbox Browser("Google").Page("Google").WebEdit("q").GetTOProperty("name")
'This will set the property value.
Browser("Google").Page("Google").WebEdit("q").SetToProperty "name","GoogleSearchBox"
'This will validate the changes that we have made to the name property
msgbox Browser("Google").Page("Google").WebEdit("q").GetTOProperty("name")

Pls check out the property of Web edit before and after the execution (It will be the same in OR).

Let me know if you need any more info.

Thanks,
Sridhar
Reply


Messages In This Thread
SETTOPROPERTY - by rajeshdizzy - 07-09-2009, 04:19 PM
RE: SETTOPROPERTY - by Eazy007 - 07-09-2009, 04:59 PM
RE: SETTOPROPERTY - by rajeshdizzy - 07-09-2009, 05:21 PM
RE: SETTOPROPERTY - by supputuri - 07-09-2009, 05:39 PM
RE: SETTOPROPERTY - by rajeshdizzy - 07-09-2009, 05:53 PM
RE: SETTOPROPERTY - by rajeshdizzy - 07-10-2009, 02:18 PM
RE: SETTOPROPERTY - by supputuri - 07-09-2009, 06:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The SetTOProperty on an object is n ot working... shibinp 0 3,025 09-02-2011, 06:39 PM
Last Post: shibinp
  Object required on SetToProperty zerocool 1 4,883 12-02-2010, 01:03 PM
Last Post: cdesserich

Forum Jump:


Users browsing this thread: 3 Guest(s)