2 ms·
interesting. how do you do this?
by mlevental 8y ago
interesting. how do you do this?
- cm2187 8y agoAdd a WebBrowser control (which is just a wrapper around IE), navigate to the page of your choice, then you can access the DOM with methods like webBrowser1.Document.GetElementById("someid") you can trigger javascript events or fill a form like: webBrowser1.Document.GetElementById("someid").SetAttribute("value", "login") webBrowser1.Document.GetElementById("someid").InvokeMember("click") There are ways to embed Edge or Chrome in a .net application but you can't access or manipulate the DOM (or you have to inject some javascript, which is not as neat as being to manipulate it directly in .net).
- mlevental 8y agoit's funny i just started learning f# on linux and just last night ran into issues around add webbrowser as form control. thanks though i'll try this on windows