internal static void AvailableSeats(W.Browser browser, Table table) { foreach (var row in table.Rows) { Assert.True(browser.ContainsListItemsInTableRow(row["seat type"], row["selected"], row["message"]), string.Format("some of these text where not found in the current page: '{0}', '{1}', '{2}'", row["seat type"], row["selected"], row["message"])); } }
public WatiNWindow (Constraint windowHandle) { this.windowHandle = windowHandle; try { if (!WatiN.Core.Browser.Exists<IE>(windowHandle)) throw new MissingWindowException("No such window found: " + windowHandle); browser = WatiN.Core.Browser.AttachTo<IE>(windowHandle); } catch (WatiN.Core.Exceptions.BrowserNotFoundException) { throw new MissingWindowException("No such window found: " + windowHandle); } }
public WatiNWindow(Constraint windowHandle) { this.windowHandle = windowHandle; try { if (!WatiN.Core.Browser.Exists <IE>(windowHandle)) { throw new MissingWindowException("No such window found: " + windowHandle); } browser = WatiN.Core.Browser.AttachTo <IE>(windowHandle); } catch (WatiN.Core.Exceptions.BrowserNotFoundException) { throw new MissingWindowException("No such window found: " + windowHandle); } }
public WatiNWindow(WatiN.Core.Browser browser) { this.browser = browser; }
private static ElementFound BuildElement(WatiN.Core.Browser browser) { return(new WatiNBrowser(browser)); }
public void SetBrowser(WatiN.Core.Browser browser) { Watin.Dispose(); browser.AddDialogHandler(watinDialogHandler); Watin = browser; }
private static Element BuildElement(WatiN.Core.Browser browser) { return(new WatiNWindow(browser)); }
internal WatiNElement(WatiN.Core.Element watinElement, WatiN.Core.Browser browser) { this.browser = browser; Native = watinElement; }
public WatiNBrowser(WatiN.Core.Browser browser) { this.browser = browser; }