Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

IE and delphi

Posted on 2009-04-01
2
Medium Priority
?
217 Views
Last Modified: 2013-11-23
Hi Experts,

How can I in delphi write in a textarea  in an IE window and pressing a link

Exist some way to do this, I can not use the delphi TWebBrowser, I have to do it directly in IE window

Thx for some help
0
Comment
Question by:alpires
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 22

Expert Comment

by:8080_Diver
ID: 24045768
I'll have to take a look at an app I developed at work but I can give you the essence of the process.
You have to be able to identify the text area in the HTML before you can write to it and you also have to identify the link before you can "click" on it.
I'll provide more information tomorrow. ;-)
0
 
LVL 22

Accepted Solution

by:
8080_Diver earned 2000 total points
ID: 24050581
Okay, I found the code (see below).
In the code snippet labelled {Basic information}, you see what you need to find in the html, how to set the value, and then what you need to find and 'click'.  (This snippet is from an app that access the TxDoT web site to verify VIN information.)
The declaration of the fHTMLElement is as follows:
 fHtmlElement    : IHtmlElement;

    {Basic information}
    TempResult  :=  FindElement('input','name=vin_1');
    if TempResult
    then begin
      fHtmlElement.setAttribute('value',VIN,0);
      if FindElement('input','type=submit')
      then begin
        fHtmlElement.click;
      end; {if}
    end; {if}

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question