示例#1
0
 protected void Initialize(IHTMLElement e, DocumentElement doc)
 {
     _Document = doc;
     _Element = e;
 }
示例#2
0
 public HTMLElement(IHTMLElement e, DocumentElement doc)
 {
     Initialize(e, doc);
 }
示例#3
0
 public SelectElement(IHTMLSelectElement e, DocumentElement d)
     : base(e as IHTMLElement, d)
 {
 }
示例#4
0
		public InputElement(IHTMLInputElement e, DocumentElement d) : base(e as IHTMLElement, d)
		{
		}
示例#5
0
 public ButtonElement(IHTMLButtonElement e, DocumentElement d)
     : base(e as IHTMLElement, d)
 {
 }
示例#6
0
 public FormElement(IHTMLFormElement e, DocumentElement d)
     : base(e as IHTMLElement, d)
 {
 }
示例#7
0
 public OptionElement(IHTMLOptionElement e, DocumentElement d)
     : base(e as IHTMLElement, d)
 {
 }
示例#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);
 }
示例#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;
 }