Results 1 to 4 of 4

Thread: What is Description Object?

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Post What is Description Object?

    Can anyone tell me what is description object


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Arrow Re: What is Description Object?

    Set ODesc = Description.Create()
    ODesc("miclass").value = "WebButton"


    Set OCollection = Browser(p).Page(b).ChildObjects(ODesc)


    '''here ODesc is the description Object & by the Using the OCollection u can perform validation on any of the object that u need.

    E.g If there are 2 Submit button one named "Submit" other named "Logout"
    then......

    For i = 0 to OCollection.Count-1
    if OCollection(i).GeROProperty("name") = "Logout" then
    OCollection(i).click
    end if
    Next




    Regards,
    Nawab


  3. #3
    Expert Member
    Join Date
    Jan 2007
    Answers
    141

    Re: What is Description Object?

    Hi Priya85

    Find this geeklink for your question,this was already discussed in forum

    QTP - What is Description Object?What are SetToProperty, SetRoProperty, GetToProperty scripting?What is th

    cheers,
    sridevichitthu


  4. #4
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: What is Description Object?

    HI friend..

    Description

    Creates a new, empty description object in which you can add collection of properties and values in order to specify the description object in place of a test object name in a step.

    Syntax
    set PropertiesColl = Description.Create

    Example

    The following example uses the Create method to return a Properties collection object named EditDesc, and then uses the returned object to instruct QuickTest to enter the text: MyName in the first WebEdit object in the Mercury Tours page with the name UserName.

    set EditDesc = Description.Create()

    EditDesc("Name").Value = "userName"

    EditDesc("Index").Value = "0"

    Browser("Welcome: Mercury").Page("Welcome: Mercury").WebEdit(EditDesc).Set "MyName"

    Thanks
    deepasree


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact