Facebook

Course Name Start Date Time Duration Registration Link
Python for Testers 15th July 2020 9.00 PM IST to 10:30 PM IST 10 days ClickHere
Please mail To sudhakar@qtpsudhakar.com to Register for training

Monday, March 9, 2009

Get Test Object Properties


Test Object:- The object which is there in object repository is called as Test Object.

Here I added an object ggogle search button. The below code will get the test object properties.

Dim TOPropList
Dim TOPropCount
Dim PropCount
Dim TOPropName
Dim TOPropValue

'Get TO Properties Collection for Google Search button
set TOPropList=Browser("Google").Page("Google").WebButton("Google Search").GetTOProperties

'Get TO Properties count
TOPropCount=TOPropList.count

For PropCount=0 to TOPropCount-1

   TOPropName=TOPropList(PropCount).name
   TOPropValue=TOPropList(PropCount).value
   print TOPropName&":="&TOPropValue

Next

1 comment :