Пример #1
0
 public WindowContext(RemoteSession session)
     : base()
 {
     _session        = session;
     _currentWindow  = new Window(session, this, null);
     _previousWindow = _currentWindow;
     _cachedWindows  = new List(10);
     _cachedWindows.Add(_currentWindow);
 }
Пример #2
0
 internal static List GetWindowsHandles(RemoteSession session)
 {
     return((List)session.Send(RequestMethod.GET, "/window_handles"));
 }
Пример #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"));
 }
Пример #4
0
 internal static string GetCurrentTitle(RemoteSession session)
 {
     return((string)session.Send(RequestMethod.GET, "/title"));
 }
Пример #5
0
 /// <summary>
 /// Contructor over a session
 /// </summary>
 /// <param name="session"></param>
 internal FrameContext(RemoteSession session)
 {
     _session = session;
 }
Пример #6
0
 internal JavascriptContext(RemoteSession session)
 {
     this.session = session;
 }