Posts: 275
Threads: 4
Joined: Jul 2011
Reputation:
0
01-31-2012, 09:08 AM
second line is to get handle to the web object in the html DOM (in your case it's webeidt).Through this you can get/set any property listed in the "run time object properties" when you spy on the webeidt.
eg:msgbox Browser("Googgle").Page("Google").WebEdit("Search").Object.isContentEditable 'isContentEditable is a property which you can not retrieve through GetRoProperty
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
01-31-2012, 12:18 PM
RajPes -
The above statement holds 90% correct except for the last line. "You can retrieve all of the properties using the GetRoproperty as to what you can do through the DOM as well. For eg: oVal = Browser().Page().Webedit().GetRoproperty("isContentEditable") will return a Value 1 or 0 depending upon the settings".
However, the other ease in using the .object is to aid in clear programming.
Code:
Set oObj = Browser().Page().Webedit().object
msgbox oObj.IsContenteditable
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.