Delphi TWebBrowser identify button enabled

251 views Asked by At

The website uses Ajax and the button enables only after the selection of two combobox.

How to identity if the site button is enabled or disabled?

cheers.

1

There are 1 answers

1
Remy Lebeau On BEST ANSWER

Use the browser's DOM interfaces to access the button element. Once the page has been loaded, you can query the TWebBrowser.Document property for the IHTMLDocument2 interface, drill down to the desired button element, query it for the IHTMLElement3 or IHTMLButtonElement interface, and then read its disabled property.