Exemple #1
0
        public TestObject(ITestWindow window, String domain)
        {
            this._parentWindow = window;
            this._domain       = domain;

            SetIdenProperties();
        }
Exemple #2
0
        public static IntPtr GetApplicationWindowHandle(this ICommandAdapter adapter)
        {
            ITestControl testControl = adapter.CreateTestControl(TestControlType.Dialog, "");

            if (testControl == null)
            {
                throw new InvalidOperationException("activeWindowControl is null");
            }
            ITestWindow testWindow = testControl.GetInterface <ITestWindow>();
            var         caption    = testWindow.Caption;

            if (!adapter.IsWinAdapter())
            {
                caption += " - Internet Explorer";
                return(Win32Declares.WindowHandles.FindWindowByCaption(IntPtr.Zero, caption));
            }
            return(testWindow.GetActiveWindowHandle());
        }
Exemple #3
0
 public TestObject(ITestWindow window)
     : this(window, "Unknow")
 {
 }
Exemple #4
0
 public int GetWindowIndex(ITestWindow window)
 {
     return(-1);
 }
Exemple #5
0
 public int GetWindowIndex(ITestWindow window)
 {
     return -1;
 }
 public TestController(IResponsiveClient helper, ITestWindow control)
     : base(helper)
 {
     _control = control;
 }
 public TestController(IResponsiveClient helper, ITestWindow view)
     : base(helper)
 {
     _view = view;
 }