static public void AttachToIE(this Browser browser) { BrowserWindow ie = browser as BrowserWindow; if (ie == null) { return; } ie.AttachToIE(); }
static private void TryInjectScript(this Browser browser, Action action) { browser.TryWait( () => { action(); }, () => { BrowserWindow ie = browser as BrowserWindow; ie.AttachToIE(); logger.Info("TryInjectScript has attachToIE"); }); }