SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    verify drop down values

    I am new to Silktest. How to verify that the drop down object has the list of values as x1 and x2?

    Also, how would I verify the DialogBox object's text?

    Can I use the VErify function to do the above? Can somebody post some code on this?

  2. #2
    Super Member
    Join Date
    Jul 2003
    Location
    Boulder, CO
    Posts
    1,276
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: verify drop down values

    1) Read about PopupList in Help. Use method GetContents() to get a LIST OF STRING. You'll have to compare the list to a 'known list' that you have saved or something like that. I would simply use regular logic along with LogWarning() and LogError() instead of messing with Verify().

    2) This won't be easy with all dialog types. Netscape's dialogs, for instance, cause headaches. Otherwise, I think you can use StaticText members to define 'pointers' to the text you want to scrape off the dialog. For instance:

    Print(DialogBox("#1").StaticText("#1").GetText())

    should print the text of the first instance of static text from the current dialog box into your results file. Read about multitag in Help and Use the recorder to capture a snapshot of the dialog you are working with.
    Chris R Mead

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: verify drop down values

    Thanks. I very much appreciate the quick reponse.

 

 

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 11.54%
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 12:14 AM.

Copyright BetaSoft Inc.