SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Html Link acts as HtmlText

    It seems like you are trying to over-engineer the problem. I would just carry a :

    do
    HtlmLink().Click()
    excep
    HtmlText().Click()

    If you want. GetChildren() and search for your control caption(make sure you have a unique pattern, usually window id is a good one).

    it's fairly fast. Loops are fast. GetContents() is sometimes slow.

    As long as your code works 100% of the time, you should always go for it, when no better and easy solution comes into your mind. Never waste time for better programming versus deadlines. Result is what counts.

    You can always optimize your code afterwards.

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


    [This message has been edited by GodKnows (edited 06-22-2001).]

  2. #2
    Moderator
    Join Date
    May 2001
    Location
    SanJose,CA,USA
    Posts
    363
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Html Link acts as HtmlText

    godknows

    do HtlmLink().Click()
    excep HtmlText().Click()

    i will follow this.thanks for this step.



  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Html Link acts as HtmlText

    I forgot to mention.

    Do..Execept can be dangerous sometimes.

    Cuz sometimes errors(they might not alwasy be important) are jumped over, by the do..except. So your code might crash somewhere after that. For your case it will work fine cuz I did similar stuff before.


    Just a word of warning.

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

  4. #4
    Moderator
    Join Date
    May 2001
    Location
    SanJose,CA,USA
    Posts
    363
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Html Link acts as HtmlText

    Hi

    I need some help for this probelm.


    I have this Text :

    To completely shut down your account, deleting all lists Click Here


    In the above text, Click Here is a Link.


    When i use window identifier / Actions in Netscape 4.77/6.0 it shows as click here Link.
    but in IE 5.0 DOM it shows as Text.


    IE
    BrowserPage.HtmlText("To completely shut down your account, deleting all lists Click Here").Click ()


    Netscape
    BrowserPage.HtmlLink("Click Here").Click ()

    I need to write one line code it should take care of both IE/Netscape


    Advance thanks for ur help



 

 

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

Copyright BetaSoft Inc.