2
How can I capture the return of a button request submit
using Abot
?
With the code below I can search through the árvore DOM
, modify the values of my inputs
and capture the element that performs the form Ubmit (or the form itself). However, I cannot proceed and make another request to evaluate your return.
How can I accomplish this process?
void crawler_ProcessPageCrawlCompleted(object sender, PageCrawlCompletedArgs e)
{
CrawledPage crawledPage = e.CrawledPage;
var txtFoo = crawledPage.CsQueryDocument["#someId"].First();
txtFoo.Text("Some text");
var btnSubmit = crawledPage.CsQueryDocument["#btnSubmit"].First();
}