Re: automate click of un-named item

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: HudsonKane (HudsonKane_at_discussions.microsoft.com)
Date: 09/07/04

  • Next message: Igor Tandetnik: "Re: automate click of un-named item"
    Date: Tue, 7 Sep 2004 07:53:08 -0700
    
    

    I have just now been able to get my code working by looping through all items
    in the page
    when I get one with a tag name of "A", I check the outerHTML for
    "method=mymethod"
    if it contains that text I do a .click().
    Is there a way to get to this field more efficiently?
    Thank You

    "Igor Tandetnik" wrote:

    > "HudsonKane" <HudsonKane@discussions.microsoft.com> wrote in message
    > news:59B5D8DE-586A-4CC4-B3DD-184E3E18412C@microsoft.com
    > > I have an item in a page that I want to process, but I am not sure
    > > how to get it and what to do to simulate a click on it:
    > > have an internet explorer automation app running well, however I
    > > have not been able to simulate the selection of an item in a table.
    > > The section I need to process looks like:
    > > ....
    > > <td align="left" bgcolor="330099" valign="bottom">
    > > <a href="somescript.do?method=mymethod" target="_top">
    > > <img src='/images/image_tab_up.gif' border=0 width=59 height=21
    > > alt="AltName"></a></td>
    >
    > How do you know this is the one you want? Answer this, and I'll tell you
    > how to get to it.
    > --
    > With best wishes,
    > Igor Tandetnik
    >
    > "On two occasions, I have been asked [by members of Parliament], 'Pray,
    > Mr. Babbage, if you put into the machine wrong figures, will the right
    > answers come out?' I am not able to rightly apprehend the kind of
    > confusion of ideas that could provoke such a question." -- Charles
    > Babbage
    >
    >
    >


  • Next message: Igor Tandetnik: "Re: automate click of un-named item"

    Relevant Pages

    • Re: CAtlRegExp crashes with pound sign!
      ... Microsoft MVP, MCSD ... "Igor Tandetnik" wrote in message ... the resulting value is the least unsigned integer congruent to ... > Mr. Babbage, if you put into the machine wrong figures, will the right ...
      (microsoft.public.vc.atl)
    • Re: How to get authorization HTTP header from within an ActiveX co
      ... "Igor Tandetnik" wrote: ... > server responds with 401 Unauthorized code and WWW-Authenicate header, ... > request, or you can pass them as parameters to InternetConnect. ... > Mr. Babbage, if you put into the machine wrong figures, will the right ...
      (microsoft.public.win32.programmer.ole)
    • Re: problem with link list
      ... > MyStruct as a paramter, ... which is not in any way related to mylist or pos. ... > Igor Tandetnik ... > Mr. Babbage, if you put into the machine wrong figures, will the right ...
      (microsoft.public.vc.language)
    • Re: Rounding problem
      ... I think you're making wrong assumption that 3.5 is "Three dot five" and has ... In fact it's stored in memory like fraction of power 2, ... >> Igor Tandetnik ... >> Mr. Babbage, if you put into the machine wrong figures, will the right ...
      (microsoft.public.vc.language)