Facebook

For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
Course Name Date Time Duration Type Location
WhatsApp to 91-8328152362 for address details of AnyTechLabs
Selenium + Appium 27th February 2019 7.00 AM IST to 8:45 AM IST 45 Days Class Room + Online AnyTechLabs
Selenium + Appium 9th March 2019 9.00 AM IST to 2.00 PM IST 5 WeekEnds Class Room + Online AnyTechLabs

A book "Cracking the QTP interview" authored by Sudhakar.Read More. Buy From FlipKart

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 :