Facebook

For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
Course Name Date Time Duration Type Location
An important update from QtpSudhakar. I stopped giving classroom training in MindQ Systems. I have bigger plans and I want to put an end to regular classroom training because very less people are practicing. From now onwards every session of mine is going to have explanation and practice. Everyone should practice in presence of mine and should go out of classroom with practical knowledge. So I started my own institute AnyTechLabs in Madhapur. Please reach out to +91-8328152362 for course details. Visit AnyTechLabs.com for address details.
Selenium + Cucumber 24th October 7.30 AM IST to 9.00 AM IST 45 Days WeekDay Online

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