Exemplo n.º 1
0
 private void ElementClicked(Element element)
 {
     // TODO: this logic probably shouldn't go here
     var form = element.HtmlNode.FindParent("form");
     if(form != null)
         FormSubmitted(new FormSubmission(form.Attr("action"), form.Attr("method")));
 }
Exemplo n.º 2
0
 public Element FindById(string id)
 {
     var element = new Element(_html.OwnerDocument.GetElementbyId(id));
     element.Clicked += ElementClicked;
     return element;
 }