Exemplo n.º 1
0
 protected void Initialize(IHTMLElement e, DocumentElement doc)
 {
     _Document = doc;
     _Element = e;
 }
Exemplo n.º 2
0
 public HTMLElement(IHTMLElement e, DocumentElement doc)
 {
     Initialize(e, doc);
 }
Exemplo n.º 3
0
 public SelectElement(IHTMLSelectElement e, DocumentElement d)
     : base(e as IHTMLElement, d)
 {
 }
Exemplo n.º 4
0
		public InputElement(IHTMLInputElement e, DocumentElement d) : base(e as IHTMLElement, d)
		{
		}
Exemplo n.º 5
0
 public ButtonElement(IHTMLButtonElement e, DocumentElement d)
     : base(e as IHTMLElement, d)
 {
 }
Exemplo n.º 6
0
 public FormElement(IHTMLFormElement e, DocumentElement d)
     : base(e as IHTMLElement, d)
 {
 }
Exemplo n.º 7
0
 public OptionElement(IHTMLOptionElement e, DocumentElement d)
     : base(e as IHTMLElement, d)
 {
 }
Exemplo n.º 8
0
 public void WaitForNavigationComplete()
 {
     if (!_NavigationComplete.WaitOne(Timeout, false))
         throw new Exception("Browser navigate timeout: " + ((HTMLDocument)(IE.Document)).url);
     _Document = new DocumentElement((IHTMLDocument3)(IE.Document), this);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Navigate to a given URL; throw if timeout, return when navigation complete
 /// </summary>
 /// <param name="URL"></param>
 /// <param name="wait">true to wait for completion of navigate</param>
 /// <returns>Document if wait request AND navigation succeeded</returns>
 public DocumentElement Navigate(string URL, bool wait)
 {
     _Document = null;
     IE.Navigate(URL, ref Missing, ref Missing, ref Missing, ref Missing);
     if (wait)
     {
         WaitForNavigationComplete();
         return Document;
     }
     return null;
 }