public object Execute(ScriptUtility x, object input) { var uri = input as Uri; var browser = x.Exec<IBrowsingSession>("GetBrowsingSession") as StatefullBrowsingSessionWrapper; if (browser != null) { x.Exec("ClearCacheEntry", input); } return x.Exec<IBrowsingSession>("GetBrowsingSession").TrySwitchProxy(uri); }
public object Execute(ScriptUtility x, object input) { var uri = input as Uri; var browser = x.Exec <IBrowsingSession>("GetBrowsingSession") as StatefullBrowsingSessionWrapper; if (browser != null) { x.Exec("ClearCacheEntry", input); } return(x.Exec <IBrowsingSession>("GetBrowsingSession").TrySwitchProxy(uri)); }
public object Execute(ScriptUtility x, object input) { var uri = input as Uri; var browser = x.Exec<IBrowsingSession>("GetBrowsingSession") as StatefullBrowsingSessionWrapper; if (browser != null) { browser.ClearCacheEntry(uri); x.Flow.AddMessage("Entry clean done for " + uri.Host); } else { throw new Exception("Not a StatefullBrowsingSession"); } return null; }
public object Execute(ScriptUtility x, object input) { var uri = input as Uri; var browser = x.Exec <IBrowsingSession>("GetBrowsingSession") as StatefullBrowsingSessionWrapper; if (browser != null) { browser.ClearDomainCacheFor(uri); x.Flow.AddMessage("State clean done for " + uri.Host); } else { throw new Exception("Not a StatefullBrowsingSession"); } return(null); }
public object Execute(ScriptUtility x, object input) { var name = input as string; var sess = context.ResolveNamed<IBrowsingSession>(name); if (sess == null) throw new Exception("Session name '" + name + "' is not found"); var browser = x.Exec<IBrowsingSession>("GetBrowsingSession") as StatefullBrowsingSessionWrapper; if (browser != null) { browser.Parent = sess; } else { x.TaskBag.Set(GetBrowsingSessionScriptCommand.SETTING_BROWSING_SESSION, sess); } return null; }
public object Execute(ScriptUtility x, object input) { var name = input as string; var sess = context.ResolveNamed <IBrowsingSession>(name); if (sess == null) { throw new Exception("Session name '" + name + "' is not found"); } var browser = x.Exec <IBrowsingSession>("GetBrowsingSession") as StatefullBrowsingSessionWrapper; if (browser != null) { browser.Parent = sess; } else { x.TaskBag.Set(GetBrowsingSessionScriptCommand.SETTING_BROWSING_SESSION, sess); } return(null); }