SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Nov 1999
    Location
    Chicago, IL USA
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting the file location of a linked image

    I'm rather irked by the variable nature of the GetLocation() method of HtmlImage. If the image is linked, it returns the link. If the image is not linked, it returns the location of the image.

    I want to get the image file location of a linked image. Is this at all possible?


  2. #2
    Junior Member
    Join Date
    Nov 1999
    Location
    Chicago, IL USA
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the file location of a linked image

    Ok...this may be worse than I thought. Only Internet Explorer returns the file location of an unlinked image when you use GetLocation. When I use Netscape, I get a blank string for unlinked images.

    Also, I've been trying to use a number of inherited methods, like GetPropertyList on objects of class HtmlImage and I get an error that says lsPropertyNames is not defined.

    Has anyone written a script that verifies that a page is loading the right image files? I don't want to use any of the Bitmap methods/functions because that would require me to have a copy of the bitmap on the test server. This would be fairly unwieldy with the sheer number of images on our sites.


    ------------------

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

    Re: Getting the file location of a linked image

    FYI, from Segue:

    "....this is now Enhancement request 25810,
    to be considered for SilkTest 5.2."

    In the meantime, I'm writing a workaround. Anybody interested in what I came up with, let me know.

  4. #4
    Member
    Join Date
    Jan 2000
    Location
    London,UK
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the file location of a linked image

    How did you get on with your workaround I would be interested to know.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nancy Pejril:
    FYI, from Segue:

    "....this is now Enhancement request 25810,
    to be considered for SilkTest 5.2."

    In the meantime, I'm writing a workaround. Anybody interested in what I came up with, let me know.
    <HR></BLOCKQUOTE>


  5. #5
    Junior Member
    Join Date
    Nov 1999
    Location
    Chicago, IL USA
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the file location of a linked image

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by waynetayloruk:
    How did you get on with your workaround I would be interested to know.

    <HR></BLOCKQUOTE>

    I emailed you the code, but in a nutshell I wrote a new method GetFileLocation() for HtmlImage which right clicks on the image and gets the image location either from the Properties dialog in IE or from Copy File Location in Netscape.

    It's pretty slow and kludgy on IE so I hope this enhancment request gets approved for 5.02 with a better "under the covers" solution.

  6. #6
    Member
    Join Date
    Nov 2000
    Location
    Ulm, DE
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting the file location of a linked image

    Hello,

    I've upgraded to Silktest 5.5 SP1. Can someone tell me if the above problem is solved allready or not, and how do I proceed to test the images as Nancy explained?

    Thanks for your time.

    Nancy: Can you post me your workaround? Thanks

    ------------------
    Silverter - A profi was once a beginner
    Silverter - A guru was once a beginner

 

 

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 09:19 PM.

Copyright BetaSoft Inc.