public WindowContext(RemoteSession session) : base() { _session = session; _currentWindow = new Window(session, this, null); _previousWindow = _currentWindow; _cachedWindows = new List(10); _cachedWindows.Add(_currentWindow); }
internal static List GetWindowsHandles(RemoteSession session) { return((List)session.Send(RequestMethod.GET, "/window_handles")); }
internal static string ActivateWindow(RemoteSession session, string name) { session.Send(RequestMethod.POST, "/window", "name", name); return((string)session.Send(RequestMethod.GET, "/window_handle")); }
internal static string GetCurrentTitle(RemoteSession session) { return((string)session.Send(RequestMethod.GET, "/title")); }
/// <summary> /// Contructor over a session /// </summary> /// <param name="session"></param> internal FrameContext(RemoteSession session) { _session = session; }
internal JavascriptContext(RemoteSession session) { this.session = session; }