I think it would be best if i went in to more detail about what i have so far and what i want to achieve,
i work for an insurance company and sometimes we recieve an email from websites i.e Gocompare, Confused, CompareTheMarket saying we havent quoted for how ever many hours or minutes, then we open a web browser navigate to the relevant website and re-run a previous quote to clear the alarm, this is time consuming not by a great deal i know but i would like to just press one button and all of that happens so i can carry on with what im doing,
So far i have a windows form application with 4 buttons referencing different websites, and behind each button i want to be able to navigate to the relevant site and re-run previous quotes insted of manually going to the site and and entering the login details, and then clicking the "next" button to navigate through the pages until finally coming to the end to view quotes etc,
I dont want anything to pop up i just want a button to be pressed and thats it, the Webbrowser1 i have changed to the properties so it doesnt show,
if you need to have a better look in to this then please go to www.confused.com click home insurance, retrieve saved quotes, and on the screen you will see on the right the edit quote button, thats what im trying to press. the login details are firstname.lastname@example.org password testtest
my code so far below navigates to the site and logs in, im then stuck on clicking the "EditQuote" image
im actually pulling my hair out at moment as i have searched and searched and i cant seem to find any examples
hopefully some one can help me with this...
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
Dim theelementcollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("Input")
Dim count As Integer = 0
For Each curelement As HtmlElement In theelementcollection
If curelement.GetAttribute("Name").Equals("email") Then
ElseIf curelement.GetAttribute("Name").Equals("password") Then
ElseIf curelement.GetAttribute("Value").Equals("") Then
count += 1
If count = 1 Then
THIS IS WHERE I NEED TO CLICK THE EDIT BUTTON
if someone can help me get passed this part i would really appreciate it, this is on a windows form application.
Hope to hear from someone soon.