SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2003
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    alt property of HtmlImage

    Hi,
    I want to get the label on an HtmlImage. But, what I get from SilkTest API is either prior text or the caption.
    Is there any way I can get the alt property of HtmlImage.
    I have a requirement that I verify the page heading and the page headings are put as HtmlImage.

    Thanks.

  2. #2
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: alt property of HtmlImage

    Use GetPageSource to get the source of the page, and then parse for the definition in the source.

    Here's a quick example using QAForums as an example. This is just a quick and dirty example to give you an idea. I don't want to give the idea that this function is bulletproof. It isn't. It's just what I could do in a couple of minutes.


    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

    [This message has been edited by jamesso (edited 04-25-2003).]

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: alt property of HtmlImage

    Hi,
    I couldnot find GetPageSource () and GetFileName() methods in Silk5.0.3.
    are these methods available on newer version of SilkTest?

    Thanks.

  4. #4
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: alt property of HtmlImage

    Yes...they are new methods in 5.5. If using an older version, you can have SilkTest pick View/Source from the Browser and then get the contents out of Notepad instead.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

 

 

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 10:36 AM.

Copyright BetaSoft Inc.