SPONSORS:






User Tag List

Results 1 to 3 of 3

Thread: HTMLLink

  1. #1
    AG
    AG is offline
    Junior Member
    Join Date
    Nov 2001
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTMLLink

    Hello,

    I record an htmllink.
    It goes something like this
    <Objecta>.HtmlLink("SR|#7|$http:??www.abc.com").Cl ick()

    Now suppose this link "SR" with the URL "http://www.abc.com" is not present, then this silk takes the 7th link present (irrespective of the text or the url & clicks it).

    I want the silk to stop and report that such a url not found.

    What to do?

    Pl. help.

    ~A.

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

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Walsall, West Midlands, United Kingdom
    Posts
    259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HTMLLink

    So, if SR doesn't exist... then don't click the 7th link?

    If that's the case, then rename to

    .HtmlLink("SR").Click()

    Therefore if it doesn't exist, Silk will stop and raise the error in the results.

    If you want Silk to continue with your script, and notify you of the error, then you need to look at

    do... except

    in the online help.

    I think you need to get a better understanding of tags... which is in the online help.

    [This message has been edited by Beeblemaster (edited 11-05-2001).]

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: HTMLLink

    It would work better if you recorded window declarations for the screen in question so that you identifiers did not include tags. Makes it easier to do lots of other manipulations on the page.

    MikeF

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

 

 

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

Copyright BetaSoft Inc.