SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    May 2001
    Location
    Houston, TX USA
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GetContents() or GetChildren() only getting controls that are visible???

    When I use w.GetContents() or w.GetChildren() only getting controls that are visible, Is there any way I can get all the controls on that window?

    ------------------
    SG
    SG

  2. #2
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: GetContents() or GetChildren() only getting controls that are visible???

    "even Pocahontas could not get the colors of the wind"
    Isn't it --- What you see is what you get?
    So if the test tool does not see, it does not get.

    What is your Application Under Test written in? Visual Basic, Visual C++, Delphi, etc.?


    ------------------

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents() or GetChildren() only getting controls that are visible???

    If you're wondering how to get all of the objects that are declared as children of a window, you can use WindowChildren (w) which will return all objects in the window declarations.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  4. #4
    Member
    Join Date
    May 2001
    Location
    Houston, TX USA
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents() or GetChildren() only getting controls that are visible???

    The Page is a web control, embeded into a client server application.

    ------------------
    SG
    SG

  5. #5
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents() or GetChildren() only getting controls that are visible???

    Try GetSourcePage() available for 5.32 and 5.5. Something like that, it's a new feature for 5.5, but it's undocumented for 5.32(version that I tested this function on)

    It will return the html source code if that's what you want. Essentially what do you want to do with the hidden controls?


    ------------------

  6. #6
    Junior Member
    Join Date
    Aug 2001
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents() or GetChildren() only getting controls that are visible???

    basically, I think this is a bug, so I suggest that you report to segue, otherwise you have to implement the autoscrolling in you 4test script, which is not a right approach. It might already fixed in HF3, but your application could be different from others.

    ------------------

  7. #7
    Member
    Join Date
    May 2001
    Location
    Houston, TX USA
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents() or GetChildren() only getting controls that are visible???

    Do you have an example for GetSourcePage() I am using Silk 5.0.3.2. An thats exatly what I want, the source for the HTML Page.

    Thanks

    ------------------
    SG
    SG

  8. #8
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents() or GetChildren() only getting controls that are visible???

    Sorry about the delay:
    Try this:

    I just tested this on my machine and it worked.

    I use 5.032/win2k.

    ------------------

 

 

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 04:15 AM.

Copyright BetaSoft Inc.