I'm trying to scrape this grid from a website:
Obviously this is going to be hard since the grid is paged. Using firebug, hovering my mouse over one of the numbers will give me this javascript:
"javascript:__doPostBack('ctl00$ctl00$ctl00$CMSGMainContentPlaceHolder$ToolContentPlaceHolder$MCDContentPlaceHolder$ncdControl1$ncdGridView','Page$2')"
Is there anyway I can trigger that postback, and get the HTML back?
Edit: The grid is in an update panel, so the url doesn't change when you cycle through the paging.
You should be able to do something like:
ie.Link(Find.ByUrl("javascript:__doPostBack('GridView1','Select$0')")).Click();
Maybe you will have to jump through some hoops to get the correct ID for the control.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.