FireFox Synchronization using mozctl.dll
I need to implement a framework that will run scripts on both IE and FireFox. Without going on the details of the framework, I need to come up with a synchronization solution.
For IE, I use the following (the code is spread in a class):
Private moIe As SHDocVw.InternetExplorer '** Instance to Microsoft Internet Control
Set moIe = New SHDocVw.InternetExplorer '** This also starts IE
'** The following waits until the browser is ready. The 1s delay is there to free up resources.
Do While moIe.Busy = True
Wanting to replicate this with FireFox, I found the MozillaControlActiveX (I've downloaded MozillaControl1712.exe). However, the code always return the same issue. Here's the code (also spread in a class):
Private moMozilla As MOZILLACONTROLLib.MozillaBrowser
Set moMozilla = New MOZILLACONTROLLib.MozillaBrowser
At this point, and after adding 'moMozilla' in the Watch, I always have the message 'Browser is not in a valid state'.
Anyone ever played with the mozctl.dll ActiveX and can give a hand?
Thanks. Very appreciated.