🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Help with TCppWebBrowser - Find and click a button

#463
From: Hans Galema
Date: Sat, 06 Jan 2007 22:22
52 lines
2414 bytes
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();");
			}

> Now 
> because I suspected there might be frames,

There are no frames in the page you posted.

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.

So it is about this button:

       <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.

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?

Hans.
Technical Details
Message-ID: <45a02189$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.germany.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,6ed59181280548e1
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 06 Jan 2007 23:22:28 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: Help with TCppWebBrowser - Find and click a button
References: <459ebec4$1@newsgroups.borland.com> <459ec5bf$1@newsgroups.borland.com> <459fbc29$2@newsgroups.borland.com>
In-Reply-To: <459fbc29$2@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <45a02189$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1168122249 145.98.201.248 (6 Jan 2007 14:24:09 -0800)
Lines: 52
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news1.google.com!news.germany.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail