🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #464

Re: Help with TCppWebBrowser - Find and click a button

#464
From: mike
Date: Sat, 06 Jan 2007 23:04
109 lines
4110 bytes
Hans,

Thank you for responding, I appreciate it.

Please see below for my answers on your questions.




"Hans Galema" <notused@notused.nl> wrote in message 
news:45a02189$1@newsgroups.borland.com...
> mike wrote:
>
>> For the first code sample you supplied, the button was not found.
>
> How did you check that? The provided code is ok. You could add a
> Showmessage to indicate that it found the button:
>
>
>                     if( Element )
> {
>                         Element->click();
>
> ShowMessage ( "Element->click();");
> }
>

I did two things to verify the button was not found. The first thing is I 
traced the test application. The code to descover the element and click it 
was never executed. I also did put a show message in and ran the application 
and it again did not find the button.



>> Now because I suspected there might be frames,
>
> There are no frames in the page you posted.
>
The actual page I posted was from a show source of the actual page during an 
internet session on the page. If I do a show source on different parts of 
the internet window shown then I see different sources for the page. I did 
not post all the pages as I would have made the original post rather long. 
In my test application I have inserted a test for frames and it does that 
there are 2 frames.



> At first I thought that there were two buttons in that page. Well
> there are but the second one is commented out. Please clean up
> a page before you post it.
>

Well as I did not write this web page and it is from a server on the net I 
wanted to show the page as I was seeing it from my test application. This is 
why I did not clean it up.


> So it is about this button:

Yes

>
>       <p><input TYPE="button" NAME="secure_exit" VALUE=" Finished "
> onClick="logout();">
>
> The button is found and clicked with the provided code. Didn't
> you see anyting happen? I did not either but that is because
> the nesasary javasript function logout() failed.

Ther function logout() should be executed from the source server. I have no 
control over that.


>
> Then i made the following function:
>
> <script language=javascript>
> function logout()
>  {
>  var url = "http://www.borland.com";
>  var widgeds = 'toolbar=0,status=0,width=200,height=150';
>  window.open(url,"",widgeds);
>  }
> </script>
>
> Now all functioned.
>
> > I can supply you with the web page navigation to see the web page 
> > yourself
> > if this will help out.
>
> Why did not you post the exacturl with your first post?

Well I suppose I should have posted it in the first post. I am posting it 
now.

http://rpa.tblc.org/rpa/webauth.exe?lb=PALM

Borrower Id = 25913000705454

It will be the next page the button I am trying to access will be on. When I 
try and find this button through my test application I never see it.

I hope you can assist me in this as I really do not understand why I cannot 
get to this button.

Thanks very much.

Mike 
Technical Details
Message-ID: <45a02ab5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <459ebec4$1@newsgroups.borland.com> <459ec5bf$1@newsgroups.borland.com> <459fbc29$2@newsgroups.borland.com> <45a02189$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,6ed59181280548e1
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "mike" <mfbrowne@earthlink.nnet>
Newsgroups: borland.public.cppbuilder.internet.web
References: <459ebec4$1@newsgroups.borland.com> <459ec5bf$1@newsgroups.borland.com> <459fbc29$2@newsgroups.borland.com> <45a02189$1@newsgroups.borland.com>
Subject: Re: Help with TCppWebBrowser - Find and click a button
Date: Sat, 6 Jan 2007 18:04:04 -0500
Lines: 111
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 72.185.80.204
Message-ID: <45a02ab5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1168124597 72.185.80.204 (6 Jan 2007 15:03:17 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail