Answer the question
In order to leave comments, you need to log in
How to wait for the site to load before executing the code?
Tipo the site will not have time to load, and the line with getting html is already running and as a result an error appears, how to fix it?
browser.ViewSource();
html = browser.GetSourceAsync().Result; // Если страница не успеет загрузиться, то html будет пустым.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question