I'm crawling a certain webpage that requires me to click OK to a javascript confirm dialog before showing its content. I know how to automate click on a html button but not a js dialog. I tried :
procedure TMainForm.crmJsdialog(Sender: TObject; const browser: ICefBrowser;
const originUrl, acceptLang: ustring; dialogType: TCefJsDialogType;
const messageText, defaultPromptText: ustring; callback: ICefJsDialogCallback;
out suppressMessage, Result: Boolean);
begin
Result := True;
end;
but it only suppressed the confirm dialog and won't proceed to the next page.
I'm using cef3 in XE7 if that helps.
Thanks in advance.