I've tried several solutions, and all of them failed in my tests. I'm making a Form that reads the DOM of this page: http://www.kayak.com.br/flights#/NYC-DXB/2013-03-29-flexible/2013-04-17-flexible
This is an example, I'd like to automate the search of specific flights/dates. The page has multiple frames, I've tried:
- WebBrowser Control in a new thread
- HTML - How do I know when all frames are loaded?
- WebBrowser DocumentCompleted event fired more than once
- How to use WebBrowser control DocumentCompleted event in C#?
- Detect WebBrowser complete page loading
All of the solutions in those links, none have worked. Then I realized that "documentCompleted" event was not firing at the end of the progress bar, the last event was being fired before the flight search completed.
The only way I was able to get it was setting a timer for like 15s (assuming the research is complete), but this is not reliable at all!
This is my first post here, usually I find everything I need, but this time I think I'll need an extra help! :)