G
G
GeniusBT2015-06-06 17:39:39
Delphi
GeniusBT, 2015-06-06 17:39:39

Delphi - How to fill input field in WebBrowser1 from program?

Hello everyone, I searched on the Internet, but did not find it.
In general, I have Edit1, Button and WebBrowser1 on the form.
On startup code:
Form21.WebBrowser1.Navigate(' www.yandex.ru ');
Form21.WebBrowser1.Silent:=True;
How to make that when you click on the button, the input field in WebBrowser1 is filled in the Yandex search bar (name="text") and the find button is pressed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ORTOL, 2015-12-03
@ORTOL

If you need the end result and not just this execution process, then everything can be done
much easier ...
procedure TForm1.Button1Click(Sender: TObject);
begin
WebBrowser1.Navigate( ' https://yandex.ru/search/?lr=10253&text= '+Edit1.Text);
end;
b95b5fb6fe5441af979c9b8eedebce4d.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question