SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5

Thread: Easy Question

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Easy Question

    I have a problem where I'm trying to dynamically change a tag on a window id to match a count on the number of the object type. The problem I'm having, is that the format that Silk Test is reading it in, is different than what I'm inputting it as. Here's some details:

    Line: SelectRTVsToPick.CheckBox("{iCheckCount}").Check ()

    Error: *** Error: Window '[CheckBox]1' was not found

    Declaration: [-] CheckBox CheckBox1
    [-] multitag "#1"
    [ ] "$0"


    Anybody have any ideas that might help?

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Easy Question

    Try the putting a '#' before {iCheckCount}. For example:

    SelectRTVsToPick.CheckBox("#{iCheckCount}").Check ()
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  3. #3
    Member
    Join Date
    Nov 2001
    Location
    Mainz - Germany
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Easy Question

    Another idea:

    SelectRTVsToPick.@("CheckBox{iCheckCount}").Check ()

    regards, Martin.

  4. #4
    Member
    Join Date
    Jun 2004
    Location
    denver
    Posts
    96
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Easy Question

    Somebody told me a while back to use an @ symbol which has worked great. But I don't know if it will work here.

    Example:
    SelectRTVsToPick.CheckBox@iCheckCount.Check ()

    Maybe you make the string first and then use it in the SelectRTVsToPick statement?

    Example:

    iCheckCount = GetCheckCount()
    sCheckBoxAndNumber = "CheckBox{iCheckCount}"
    SelectRTVsToPick.@sCheckBoxAndNumber.Check ()

    Hope it helps.
    Ed

  5. #5
    Junior Member
    Join Date
    Mar 2003
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Easy Question

    Thanks guys, all examples worked great!

 

 

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 10.00%
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 10:49 PM.

Copyright BetaSoft Inc.