public ISession CreateSession(IApplication application, Capabilities capabilities)
 {
     var id = Guid.NewGuid().ToString();
     var session = new Session(id, application, capabilities);
     this.sessions[id] = session;
     return session;
 }
Пример #2
0
 public Session(string id, IApplication application, Capabilities capabilities)
 {
     this.ID = id;
     this.Application = application;
     this.Capabilities = capabilities;
     this.FocusOnCurrentWindow = true;
     this.uiElements = new List<AutomationElement>();
 }