SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2002
    Location
    Newark, CA, USA
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I create window declarations for a certain message box??

    Hi!

    Anybody knows if I can record window declaration for a certain messagebox?

    After I have done it so, window identifier won't read its GUI name.

    Could you please give me a tip?
    Thank you!


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

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I create window declarations for a certain message box??

    You probably need to modify the window tag to include an ~ActiveApp/ prefix.
    Something like this:

    tag "~ActiveApp/[DialogBox]$MessageBox"

    See the SilkTest help topic:
    "About the generic message box declaration"

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  3. #3
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I create window declarations for a certain message box??

    if you want to uniquely identify a specific messagebox, you should include the message in the tag.

    tag "[DialogBox]$MessageBox/[StaticText]Specific message text/.."

    look up "multitag statement" in the help for some good info. And I'm not sure my syntax is completely correct in my example, may not have needed [DialogBox] before $MessageBox, I can't remember.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    window identifier won't read its GUI name.
    <HR></BLOCKQUOTE>

    What exactly do you mean? are you using the identifier recorder to check that your tag works? If so, that's not completely reliable. Silk will display the first identifier it finds that matches the window you are looking at. In the case of your messagebox the recorder would probably record the standard messagebox declaration, such as the one Rob suggested. Does that make sense?

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


    [This message has been edited by BrianCarroll (edited 03-02-2002).]

  4. #4
    Junior Member
    Join Date
    Mar 2002
    Location
    Sunnyvale
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I create window declarations for a certain message box??

    Hi,

    When you recording window declaration change
    Tag Information to "Index" to capture instead of name index of the window. Than in include file named this window.

    I done this before it work.


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

 

 

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 02:37 PM.

Copyright BetaSoft Inc.