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

Thursday, September 2, 2010

Properties Collection Object - How to use other description property in current description object?

'###############################################
' Properties Collection Object
'###############################################

'Introduction:-
'This object is an extension of Description object. Using this we can do some with description object.
' This is used to add, remove properties for a description object.We can also count how many properties used for a description.

' The unique feature of this object is we can add a property which is used by other description object

'Ex:

'Create a Description for Link1
Set LnkDesc1=Description.Create
LnkDesc1("micclass").value="Link"
LnkDesc1("name").value="Gmail"

'Create a Description for Link2
Set LnkDesc2=Description.Create
LnkDesc2("name").value="Gmail"

LnkDesc2.Add LnkDesc1(0)

'In the above example Iam creating the description for link objects
'All link objects will have the same class value
' To remove the redundancy I have used the same property value in other link collection by specifying Property Index of a collection
' The property Index Start from '0'

No comments :

Post a Comment