I'm creating an application and I have made a login form which should accept the user's account login information, login to a specific website with those, and show the website in the in-app webbrowser. I know how to do so, but only if the website provides me with the "id's" of each element. The website I'm interested in, only shows class, name, size and type of the username and password elements and only class, value and type of the "login" button. Is there a way to find the id's of these elements or else how can I use the existing information instead ?
Below is a picture for each elements' provided information:
Here is the code I have to get elements by ID:
webBrowser1.Document.GetElementById("user").SetAttribute("value", bTextBox1.Text);
webBrowser1.Document.GetElementById("passwrd").SetAttribute("value", bTextBox2.Text);
webBrowser1.Document.GetElementById("button_submit").InvokeMember("click");
I will really appreciate your help but please keep the coding as simple as possible :)
EDIT: I tried this:
webBrowser1.Document.GetElementsByTagName("input_text").GetElementsByName("user")[0].SetAttribute("input", bTextBox1.Text);
But it still didn't work


