예제 #1
0
        public TestObject(ITestPage page, String domain)
        {
            this._parentPage = page;
            this._domain     = domain;

            SetIdenProperties();
        }
 public TestGrid(ComboBox comboBox, ITestPage testPage) {
     TestPage = testPage;
     RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
     RowDefinitions.Add(new RowDefinition());
     if(comboBox != null) {
         Children.Add(comboBox);
         comboBox.SetValue(Grid.RowProperty, 0);
     }
     Children.Add((UIElement)testPage);
     ((UIElement)testPage).SetValue(Grid.RowProperty, 1);
 }
예제 #3
0
 public TestGrid(ComboBox comboBox, ITestPage testPage)
 {
     TestPage = testPage;
     RowDefinitions.Add(new RowDefinition()
     {
         Height = GridLength.Auto
     });
     RowDefinitions.Add(new RowDefinition());
     if (comboBox != null)
     {
         Children.Add(comboBox);
         comboBox.SetValue(Grid.RowProperty, 0);
     }
     Children.Add((UIElement)testPage);
     ((UIElement)testPage).SetValue(Grid.RowProperty, 1);
 }
예제 #4
0
 public TestObject(ITestPage page)
     : this(page, "Unknow")
 {
 }
예제 #5
0
        public virtual int GetPageIndex(ITestPage page)
        {
            if (page != null)
            {
                for (int i = 0; i < _browserList.Count; i++)
                {
                    InternetExplorer ie = _browserList[i];
                    IntPtr curIUnknown = Marshal.GetIUnknownForObject(ie.Document);
                    IntPtr pageIUnknown = Marshal.GetIUnknownForObject(page.Document);

                    if (curIUnknown == pageIUnknown)
                    {
                        return i;
                    }
                }
            }

            return -1;
        }