I have a problem maintaining the session after logged in successfully through automation using the:
doc.GetElementById("username").SetAttribute("value", "user");
doc.GetElementById("password").SetAttribute("value", "pass");
doc.GetElementById("submit").InvokeMember("click");
it directs to the main page after logged in.
How do i navigate inside the website though automation so not using mt mouse to browse, i need to call a web page that is on the server but there are no links on the web page. you can only access it by URL.
i tried
webBrowser.Navigate("https://localhost/samplesite/samplepage");
but after it redirected it gives me a error that i usual get when i am not logged in.
Any suggestions to how i can navigate in the site after logging on?
the idea is to have a website automatically log in and load the webpage