
09-06-2008
|
|
|
|
Re: Using C# htmlDoc.getElemenetsByTagName("img") , problem to 'cl
Hi PA Bear,
I tried your referance and still didn't find any answers or idea from there,
Do you have more Idea or know when I can download infrmation on C# command
which have decode HTML operation (find elemenets , do clicks ...)
Thanks Much,
Spring.
"PA Bear [MS MVP]" wrote:
> See these MSDN pages: http://msdn2.microsoft.com/en-us/ie/default.aspx &
> http://msdn2.microsoft.com/en-us/ie/aa740476.aspx
>
> MSDN IE Development Forums
> http://forums.microsoft.com/MSDN/def...D=253&SiteID=1
>
> Tip: Don't compose your newsgroup posts in Word. If you must do so, only
> use ENTER to begin a new paragraph; to begin a new line, use Shift+ENTER.
> Thanks.
> --
> ~Robear Dyer (PA Bear)
> MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
> AumHa VSOP & Admin http://aumha.net
> DTS-L http://dts-l.net/
>
> Spring wrote:
> > Hi ,
> >
> >
> > After lots of unsuccesful resreach I hope to find the a solution in this
> > furom :-)
> >
> >
> > my C# software browse to web with the following HTML section
> > using:
> >
> > C# part code
> >
> >
> > .
> > .
> > .
> >
> > _ie_inst = (InternetExplorer)ies;
> >
> > MSHTML.HTMLDocument htmlDoc = (MSHTML.HTMLDocument)_ie_inst.Document;
> >
> > .
> > .
> > ..
> >
> > HTML which was loaded :
> >
> > <td align="center" class="titlePage2"><img style="cursor:hand"
> > src="../images/green.gif" originalAttribute="src"
> > originalPath=""../images/green.gif"" originalAttribute="src"
> > originalPath="../images/green.gif" originalAttribute="src"
> > originalPath="../images/green.gif" border=0 vspace=0 hspace=0 alt="sign
> > it"
> > onClick="return doSign('2','524')"></td>
> >
> >
> > I retrived information from the html using C#
> > htmlDoc.getElemenetsByTagName("img")
> >
> > when I do watch variable to this element I see:
> >
> > .
> > .
> > .
> > isTextEdit == false
> > onclick == {system.__ComObject} // <-- see not null , means should
> > work !
> > tagName =="IMG"
> > .
> > .
> >
> > The problem when I try to call "element.click()" but nothing happens.
> >
> >
> > I notice in other cases when "isTextEdit==true" , also tagName="INPUT"
> > the
> > click works fine ,
> >
> > and no problem with that , it just the case above that makes problem to
> > click althogh onclick is not null,
> >
> > the click not working.
> >
> >
> >
> >
> >
> > appreciate any help :-)
> > Thanks,
> > Spring.
>
>
|