Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


TWebBrowser and Button Clicks

TWebBrowser and Button Clicks

TWebBrowser and Button Clicks

I am trying to programmatically click on the following button in a page held in TWebBrowser.

It's a 'Favourite' button and it exists somewhere in this lump of html code but for the life of me I can't work out how to do it.

I'm using Delphi 2010. Any help to point me in the right direction would be fantastic.

CODE -->

<div class="button-fave-container">
            <input type="hidden" class="favorite-url" value="/add_favorite_listing.php" />
    <input type="hidden" class="unfavorite-url" value="/remove_favorite_listing.php" />
    <input type="hidden" class="id" name="listing_id" value="475676099" />
    <input type="hidden" class="type" value="listing" />
    <input type="hidden" class="favorited-text" value="Favourite" />
    <input type="hidden" class="unfavorited-text" value="Favourite" />
    <input type="hidden" class="favoriting-text" value="Favourite" />
    <input type="hidden" class="unfavoriting-text" value="Favourite" />
            <input type="hidden" name="_nnc" value="3:1472741228:kp8B3kzs9HogCRaOPL2B6_ag_kju:d1b1f1e08ce857b9771573a0333d66e3f7dcff412a46ed30b57f5880d0125c46" class="hidden csrf" />
        <a class="button-fave favorited-button" rel="475676099" alt="Added to favourites">
            <div class="button-spinner"></div>
                        <span class="status-text">Favourite</span>

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close