Цитата:
Сообщение от poli-smen
Примерно так (не проверял - может где и ошибся):
Код:
procedure TForm1.Button1Click(Sender: TObject);
var
Doc: IHTMLDocument2;
Buttons: IHTMLElementCollection;
Button: IHTMLElement;
i: Integer;
begin
Doc := WebBrowser1.Document as IHTMLDocument2;
Buttons := Doc.all.tags('BUTTON') as IHTMLElementCollection;
for i := 0 to Buttons.length - 1 do
begin
Button := Buttons.item(i, EmptyParam) as IHTMLElement;
if AnsiSameText(Trim(Button.innerText), 'Вступить в группу') then
begin
Button.click;
Break;
end;
end;
end;
|
Во, большое спасибо!
__________________
Ставь спасибо за спасибо!
Помог?Ставь спасибо!Увидел пост? Поставь спасибо!
|