Menu

How do I get to the image used for a link?

Help
2005-04-23
2013-04-26
  • Benjamin Hill

    Benjamin Hill - 2005-04-23

    It is easy to get all the links on a page as WebLink, but then if the clickable content is an image icon instead of text, I don't have a way to get to the image that I know of.  getText() gets the user readable text, there doesn't seem to be a getOriginalHTML() call.  (Which is currently a feature request, but I was wondering if anyone had a workaround)

    Thanks!

     
    • Luke Tung

      Luke Tung - 2005-05-11

      I use getLinkWithImageText("alt text").  Have to set the ALT attribute of the image unique first.  Hope this will work for you.

       

Log in to post a comment.

MongoDB Logo MongoDB