SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jul 2004
    Location
    San Diego, CA
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Creating function for searching listbox values

    How would you create a function to search the listbox for a specific value.
    My scenario:
    Get the listbox count.
    For I=0 to count
    pick the listbox value
    match the value with the expected one. If matches- click on that else get the next value.

    Since everything in QTP is a window.window.listbox kind, how would you create a generic function like this without actually specifying the number of windows & name & the name of the listbox.

    Any help would be appreciated.
    Thanks
    Prashant

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Creating function for searching listbox values

    Hi Prashant,
    Create the regular expression object first i.e the regexpression should contain the list value you are searching for, Now by using Test function using the while, search for that regular expression.Hope this will solve your problem

    Naveen
    Act in haste and repent at leisure; Code too soon and debug forever

  3. #3
    Member
    Join Date
    Jul 2004
    Location
    San Diego, CA
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Creating function for searching listbox values

    Naveen:
    Thanks for the reply.
    Canyou explain me more what you mean by creating regex & store value

    Prashant

 

 

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 08:29 AM.

Copyright BetaSoft Inc.