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); }
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); }
public TestObject(ITestPage page) : this(page, "Unknow") { }
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; }