SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to access images in an image list

    User leenapreji (leenapreji@yahoo.com.nospam) posted:


    I have an object which is an image list and it has the following
    standard properties

    {displayed: 1,
    width: 774,x: 13,y: 42,abs_x: 103,
    class: object,MSW_class: LEADIMGLIST32,
    abs_y: 159,maximizable: 0,focused: 0,height: 390,
    active: 0,MSW_id: 0,handle: 922018,minimizable: 0,
    nchildren: 0,enabled: 1,TOOLKIT_class: LEADIMGLIST32}

    The MSW_class is LEADIMGLIST32. I have several images in this image
    list. How do I access each image ? I tried list functions, but
    winrunner gives the following error message

    Operation is not appropriate for this widget class.

    Is there any other functions in winrunner to access the images in a
    image list ?



  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    Hadera, Israel
    Posts
    313
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to access images in an image list

    User Roman Zilber (romanz@enigma.com.nospam) posted:

    How WR recognize images in the list? can you give example
    Is it web application?

    What is sure:
    WR doesn't recognize this list as list, and doesn't see children of this
    object, so you can't use list_.. functions.
    Roman.


  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to access images in an image list

    User Franzen, SPS PROFI, DA (C.Franzen@DeutschePost.de.nospam) posted:

    You probably should go through Windows´ API.


    Christoph Franzen
    Durchwahl -907-2419
    Schwarz, Prof. Spruth & Associates Unternehmensberatung AG & Co. KG
    Deutsche Post World Net
    ITSolution GmbH
    Abt. SCN


  4. #4
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to access images in an image list

    User Richard Weber (Richard_Weber@adp.com.nospam) posted:

    Use the ActiveX functions. Make sure the ActiveX addin is loaded.

    Examine the object with the GUI spy to see what properties are available. If there are properties under the ActiveX tab of the GUI spy then your in luck. Using ActiveX_get_info(), ActiveX_set_info() and ActiveX_activate_method() you can do just about anything with an object (using those properties).

    Rick

  5. #5
    SQA Council
    Join Date
    Mar 2001
    Posts
    8,591
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to access images in an image list

    User leenapreji (leenapreji@yahoo.com.nospam) posted:


    This image is not an ActiveX object. It is a LEADIMGLIST32 by LEAD
    TOOLS. Winrunner doesnot have any specific function to deal with
    these objects. So, settled for a work around. If you examine the
    screen shot, you can see text (file name and dir name) associated
    with each image. I tried

    obj_click_on_text("ImageList", "BMP");
    obj_click_on_text("ImageList","bmp_001.bmp);

    and IT WORKS !!!!!!!!

    --- In winrunner@y..., "Richard Weber" <Richard_Weber@a...> wrote:
    available. If there are properties under the ActiveX tab of the GUI
    spy then your in luck. Using ActiveX_get_info(), ActiveX_set_info()
    and ActiveX_activate_method() you can do just about anything with an
    object (using those properties).
    to
    I
    Co. KG
    following
    but
    images



  6. #6
    Senior Member
    Join Date
    Jun 2002
    Location
    Hadera, Israel
    Posts
    313
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to access images in an image list

    User Roman Zilber (romanz@enigma.com.nospam) posted:

    Congratulation!


 

 

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 12.50%
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 02:08 AM.

Copyright BetaSoft Inc.