Вниз
Скачать: CL | DM;

Как программно нажать на кнопку Submit?   Найти похожие ветки 

← →
JokerJ   (2002-04-18 02:11) [0]

В TWEbBrowser загружается html документ. Есть кнопка
<input type=submit value="But1">. Как программно ее нажать?


← →
Лёша ©   (2002-04-18 02:54) [1]

procedure TForm1.Button1Click(Sender: TObject);
var
Coll : IHTMLElementCollection;
i : integer;
Doc : IHtmlDocument2;
begin
Doc:= WebBrowser1.Document as IHTMLDocument2;
Coll:= Doc.All.tags("INPUT") as IHTMLElementCollection;
for i:=0 to Coll.length-1 do
if (Coll.item(i,varEmpty) as IHTMLInputElement).value="But1"
then (Coll.item(i,varEmpty) as IHTMLElement).click;
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.011 c
8-77509
trm111
2002-02-09 23:49
2002.06.24
Как заставить звуковую карту проиграть звук определенной


1-77495
do_the_right_thing
2002-06-12 00:38
2002.06.24
listbox


3-77276
Lena
2002-05-30 14:13
2002.06.24
Чтение из Blob-поля


4-77681
Yuri Btr
2002-04-23 15:18
2002.06.24
Console window!!!


1-77380
Night
2002-06-13 14:27
2002.06.24
Асемблер




   Наверх