rflechner/ScrapySharp

browser.NavigateToPage hangs - 2020/04/10

eyanson opened this issue · 8 comments

Hi. I'm testing sample code. NavifateToPage hangs app.
Can you help me please?

ScrapingBrowser browser = new ScrapingBrowser();
WebPage homePage = browser.NavigateToPage(new Uri("http://www.bing.com/"));

Same problem.

Same problem, I manage to get the result with
ScrapySharp.Network.WebPage homePage = await browser.NavigateToPageAsync(new Uri(formUrl));

but then , Again I want to use below code..where "Submit" method again hang and does not go to next line.
PageWebForm form = homePage.FindFormById(searchFormId);
form[Nameinput_TxtName] = "khushi";
form.Method = HttpVerb.Post;
WebPage postResult = form.Submit(new Uri(postFormActionUrl));

I see that , we have commit comment 'Added async submit methods to PageWebForm' on 31-May-2019, but that does not reflect on nugat package. So if we can publish that on nugat, we can use new fixes. Please do it if you can. Thanks

Same problem with me, the browser.NavigateToPage() Hangs

Hi maliki2

Same problem with me, the browser.NavigateToPage() Hangs

Same problem, I manage to get the result with
ScrapySharp.Network.WebPage homePage = await browser.NavigateToPageAsync(new Uri(formUrl));

Same problem.

Budsy commented

I think I'm experiencing a semi-hang, even with the Async method. But only on a shared web hosting service! On my dev machine, I can scan all my site pages in about 1-2 seconds. On the production server it takes 10-20 minutes !!! But the results come out the same usually, sometimes no index files result. I can't figure what's going on over at the web host. SSL ??

The problem is still present and in my case using NavigateToPageAsync doesn't return any result.
I found that using a console app solves the problem.