SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2006
    Location
    Hyderabad
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to declare a window whose name is changing at runtime?

    Hi,
    In my application the child window name would be changed at runtime. When I run the script at first time the window name would be "Project1" and If I run it again (second time) the window name will be "Project2".
    Can any one Please answer my below questions
    How to capture this window in .inc?
    How to use this window in script?

    Thanks & Regards,
    Sateeh.

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Northern Colorado
    Posts
    149
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to declare a window whose name is changing at runtime?

    Well, the caption tag could be changed to "Project*", which would match any window caption that starts with the word "Project".

    However, this solution fails fairly quickly depending on how your tests are structured.
    Dan Brandow

    Don't trust, just verify. - Stephen D. Levitt

  3. #3
    Member
    Join Date
    Apr 2005
    Location
    Delhi
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to declare a window whose name is changing at runtime?

    Hi Satish,

    Yes, this is tried/tested solution where caption changes at run time. Just replace the dynamic text with * in tag.
    Thanks
    Yash

  4. #4
    Senior Member
    Join Date
    Mar 2001
    Location
    Hillsboro, OR
    Posts
    102
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to declare a window whose name is changing at runtime?

    The prior advice is certainly accurate, but, relies on a known base tag existing, i.e. "Project*"

    If that can't be counted on, you could perhaps be more generic, and use the index tag. I'd try the other stuff first, known strings are better to use, but, sometimes you have to use an index.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 8.82%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 07:22 AM.

Copyright BetaSoft Inc.