Re: automate click of un-named item
From: HudsonKane (HudsonKane_at_discussions.microsoft.com)
Date: 09/07/04
- Previous message: Igor Tandetnik: "Re: automate click of un-named item"
- In reply to: Igor Tandetnik: "Re: automate click of un-named item"
- Next in thread: Igor Tandetnik: "Re: automate click of un-named item"
- Reply: Igor Tandetnik: "Re: automate click of un-named item"
- Messages sorted by: [ date ] [ thread ]
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
>
>
>
- Previous message: Igor Tandetnik: "Re: automate click of un-named item"
- In reply to: Igor Tandetnik: "Re: automate click of un-named item"
- Next in thread: Igor Tandetnik: "Re: automate click of un-named item"
- Reply: Igor Tandetnik: "Re: automate click of un-named item"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|