Facebook

For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
New Schedule in MindQ Systems, Madhapur By SUDHAKAR
Course Name Date Time Duration Type Branch
Selenium+Appium 16th October 2017 7.30 AM - 9.00 AM IST 45 Days ClassRoom + Online Mind Q Madhapur
Selenium+Appium 30th October 2017 9.30 AM - 11.00 AM IST 45 Days ClassRoom + Online Mind Q Madhapur

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