SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Nov 1999
    Location
    Seattle, WA, USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting the file name for an HTML Image

    I'm testing a web application that has a status indicator. This indicator is an HTML image that is a red, yellow, or green light.

    I'd like to determine which of those three it is from a SilkTest script, without having to resort to bitmap comparisons. I know the file name for each of these images, so if I can get that it would be easy.

    Does anyone out there know if you can extract the name of an image source in SilkTest?

    Thanks,
    Joe

  2. #2
    Junior Member
    Join Date
    Jul 1999
    Location
    Campbell, CA
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the file name for an HTML Image

    I wrote some methods for HtmlImage.

    For IE 5.0:
    -right click on the image
    -TypeKeys ("S") for Save Picture As
    -GetText from File Name textfield in
    Save Picture dialog

    For Netscape:
    -right click on the image
    -TypeKeys ("II") for Save Image As
    -Click on Enter Key
    -GetText from File Name textfield in Save As Dialog

    Let me know if you would like me to e-mail you the code.

    Olinda

    [This message has been edited by oleeyang (edited 03-22-2000).]

    [This message has been edited by oleeyang (edited 03-22-2000).]

  3. #3
    Junior Member
    Join Date
    Nov 1999
    Location
    Seattle, WA, USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the file name for an HTML Image

    Thanks, Olinda, for your suggestion and your code. That worked just great. It's pretty quick and painless, and significantly better than doing a bitmap comparison.

    Joe

 

 

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 05:51 AM.

Copyright BetaSoft Inc.