I am currently working on a bo that goes in a search bar, selects an element, and gets its href
link. I am using the following code and I got NullReferenceExceptions
thrown. Does anyone know why?
webBrowser1.Navigate("https://us.octobersveryown.com/search?q=shirt");
Thread.Sleep(1000);
String test = webBrowser1.Document.GetElementsByTagName("body")[0].GetAttribute("class");
Thanks, Nickolas