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.
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.