Ejemplo n.º 1
0
 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"]));
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
 public WatiNWindow(WatiN.Core.Browser browser)
 {
     this.browser = browser;
 }
Ejemplo n.º 5
0
 private static ElementFound BuildElement(WatiN.Core.Browser browser)
 {
     return(new WatiNBrowser(browser));
 }
Ejemplo n.º 6
0
 public void SetBrowser(WatiN.Core.Browser browser)
 {
     Watin.Dispose();
     browser.AddDialogHandler(watinDialogHandler);
     Watin = browser;
 }
Ejemplo n.º 7
0
 private static Element BuildElement(WatiN.Core.Browser browser)
 {
     return(new WatiNWindow(browser));
 }
Ejemplo n.º 8
0
 internal WatiNElement(WatiN.Core.Element watinElement, WatiN.Core.Browser browser)
 {
     this.browser = browser;
     Native       = watinElement;
 }
Ejemplo n.º 9
0
 public WatiNBrowser(WatiN.Core.Browser browser)
 {
     this.browser = browser;
 }
Ejemplo n.º 10
0
 public WatiNWindow(WatiN.Core.Browser browser)
 {
     this.browser = browser;
 }
Ejemplo n.º 11
0
 public WatiNBrowser(WatiN.Core.Browser browser)
 {
     this.browser = browser;
 }