SPONSORS:






User Tag List

Results 1 to 4 of 4

Thread: Html Images

  1. #1
    Member
    Join Date
    Jul 1999
    Location
    Raleigh- North Carolina
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Html Images

    Hello,

    I have a HtmlImage and it contains some dynamic simple text in it, like:
    "Click me" or "Don't click me".

    Is it possible to read this text ??

    Tks,
    Mauro


  2. #2
    Guest

    Re: Html Images

    It is if SilkTest sees the object as Text.

    Simply change the tag to the index # instead of caption.

    eg.
    HtmlText DynamicLabel
    tag "#4" // if it's the 4th TextLabel.

    Whenever you need to know what the Button is called do a DynamicLabel.GetText () // or try GetCaption () if that one does not work.

    You can also use multitags

    HtmlText DynamicLabel
    multitag = "Click Here"
    "Click Me"
    .... // add any possible caption


    Finally you can try to get the tag using a function:

    HtmlText DynamicLabel
    tag = GetDynamicTag ()


    string GetDynamicTag ()
    return BrowserChild.HtmlText(#4).GetText ()

    -AJ


  3. #3
    Member
    Join Date
    Jul 1999
    Location
    Raleigh- North Carolina
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Html Images

    Sorry,
    I think i was not clear in my previous e-mail.
    I don't have a Hmltext.
    I have a htmIImage and Silk does not have a .GetText () function to HtmlImages. What I am trying to do is read the content of the image .
    The image is multitaged and being recognized fine

    Any ideas?
    Mauro


  4. #4
    Guest

    Re: Html Images

    OK since it is an HtmlImage. I'm willing to bet it's a JavaScript Image. Which version of SilkTest are you using?
    If you are not using 5.0. I believe 5.0 has way better recognition of that type of object. You may even be able to grap the Text on that object by doing a GetCaption () because the tag usually will say some weird thing like javascript****TextOnButton.

    Hope that helps.

    -AJ

 

 

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:22 PM.

Copyright BetaSoft Inc.