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