Example #1
0
 private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
 {
     logger.Debug("navigating to: {0}, for frame: {1}", e.Url, e.TargetFrameName);
     if (NavigationUrl == null)
     {
         logger.Debug("not navigation completion method provided setup the default one on: {1}", e.Url.ToString());
         NavigationUrl = UrlNavigationCompleteDelegate.NewUrlDelegate(e.Url);
     }
     if (!stopwatch.IsRunning)
     {
         stopwatch.Start();
     }
 }
Example #2
0
 public void SendKeys(string keys, string url)
 {
     if (url == null)
     {
         SendKeys(keys);
     }
     else
     {
         logger.Debug("send keys: {0} and waiting for {1}", keys, url);
         using (Barrier action = new Barrier(2))
         {
             lock (parentBrowser)
             {
                 parentBrowser.NavigationUrl = UrlNavigationCompleteDelegate.NewUrlDelegate(url);
                 parentBrowser.SetBarrier(action);
             }
             Value = keys;
             action.SignalAndWait();
             lock (parentBrowser) parentBrowser.SetBarrier(null);
         }
     }
 }
Example #3
0
 public void Click(string url)
 {
     ClickDelegate(url == null ? null : UrlNavigationCompleteDelegate.NewUrlDelegate(url));
 }
Example #4
0
        public WebElement FindElementByName(string name, string url)
        {
            NavigationCompleteDelegate delegate_ = url == null ? null : UrlNavigationCompleteDelegate.NewUrlDelegate(url);

            return(FindElementByNameDelegate(name, delegate_));
        }
Example #5
0
 public void DoRefresh(String waitingUrl)
 {
     DoRefresh(UrlNavigationCompleteDelegate.NewUrlDelegate(waitingUrl));
 }