SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Guest

    Test2.1.4:Win32:Distinguishing windows by children

    Is it possible to have windows that are distinguished by their children? We have a number of dialog boxes that produce the same tags with the recorder (Same Caption, etc.) but have different contents.

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Test2.1.4:Win32:Distinguishing windows by children

    Michael,

    Yes, you can do this, but the windows WILL NOT be recognized by recorders. No problem on play back.

    Example:

    // BEFORE

    window DialogBox Test
    {
    tag "Test";
    PushButton Test
    {
    tag "Test";

    }
    }
    window DialogBox Verify
    {
    tag "Test";
    PushButton Verify
    {
    tag "Verify";

    //Instead, thy this.

    }
    }
    window DialogBox Test
    {
    tag "Test\[PushButton]Test\..";
    PushButton Test
    {
    tag "Test";

    }
    }
    window DialogBox Verify
    {
    tag "Test\[PushButton]Verify\..";
    PushButton Verify
    {
    tag "Verify";

    }
    }

    The .. refers to the parent. So, we're saying, look for a dialog box, which has a push button child, then look at the push button's parent.

    Let me know if this helps.

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Location
    marblehead,MA USA
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Test2.1.4:Win32:Distinguishing windows by children

    Seems like a common problem.
    You have three pages with a same caption, no unique object (pages differ by combination of objects).
    To kill developer is good decision, knowing that three with same caption is a valid excuse.
    But the best to circumvent Silk. I did it this way. In case three and more pages declare each separately with the tag string assigned as a string from list. Other words for specific combination of objects Silk recognizes
    only appropriate page, others with same caption have tag . Following example maybe clarify idea
    //
    LIST OF STRING lsVERIFY_PAGE(STRING sWindowTag,WINDOW wIdentifier1,WINDOW wIdentifier2,WINDOW wIdentifier3)
    {
    VERIFY_PAGE lsVERIFY_PAGE;
    lsVERIFY_PAGE={"","","",""};
    {
    if bVERIFY_PAGE(wIdentifier1)&&bVERIFY_PAGE(wIdentifi er2)&&bVERIFY_PAGE(wIdentifier3)
    {
    lsVERIFY_PAGE[1]=sWindowTag;
    }
    if bVERIFY_PAGE(wIdentifier1)&&bVERIFY_PAGE(wIdentifi er2)&&bVERIFY_PAGE(!wIdentifier3)
    {
    lsVERIFY_PAGE[2]=sWindowTag;
    }
    if bVERIFY_PAGE(wIdentifier1)&&bVERIFY_PAGE(!wIdentif ier2)&&bVERIFY_PAGE(!wIdentifier3)
    {
    lsVERIFY_PAGE[3]=sWindowTag;
    }
    if bVERIFY_PAGE(!wIdentifier1)&&bVERIFY_PAGE(!wIdenti fier2)&&bVERIFY_PAGE(!wIdentifier3)
    {
    lsVERIFY_PAGE[4]=sWindowTag;
    }
    }
    return lsVERIFY_PAGE ;

    }
    boolean bVERIFY_PAGE(WINDOW wID)
    {
    boolean bPage;
    if wID.Exists()
    {
    bPage=TRUE;
    }
    else
    {
    bPage=FALSE;
    }
    return bPage;

    // //Inc File
    // type VERIFY_PAGE is LIST OF STRING
    //
    // BrowserChild Win1
    // tag lsVERIFY_PAGE("WinWin",BrowserChild("#2").HtmlText ("wId1"),BrowserChild("#2").HtmlText("wId2"),Brows erChild("#2").HtmlText("wId3"))[1]
    //........
    // BrowserChild Win2
    // tag lsVERIFY_PAGE("WinWin",BrowserChild("#2").HtmlText ("wId1"),BrowserChild("#2").HtmlText("wId2"),Brows erChild("#2").HtmlText("wId3"))[2]
    //.......
    // BrowserChild Win3
    // tag lsVERIFY_PAGE("WinWin",BrowserChild("#2").HtmlText ("wId1"),BrowserChild("#2").HtmlText("wId2"),Brows erChild("#2").HtmlText("wId3"))[3]
    //.........
    }




 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:49 PM.

Copyright BetaSoft Inc.