To get Runtime object properties we should use a property called "Object". This property is available for all web objects.
The property "object' enables you to access any RO method / property for a web object.
Syntax:-
'Accessing properties for web button
Browser("Google").Page("Google").WebButton("Google Search").object.propertyname
Ex:-
'To Get RO Property
msgbox Browser("Title:=Google").Page("Title:=Google").WebEdit("name:=q").object.title ' Gives tool tip of a webedit
'To set some text using RO Property
Browser("Title:=Google").Page("Title:=Google").WebEdit("name:=q").object.value="test" ' Set text in webedit
No comments :
Post a Comment