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

            SetIdenProperties();
        }
示例#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());
        }
示例#3
0
 public TestObject(ITestWindow window)
     : this(window, "Unknow")
 {
 }
示例#4
0
 public int GetWindowIndex(ITestWindow window)
 {
     return(-1);
 }
示例#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;
 }