tag:blogger.com,1999:blog-10412725.post113998125818515961..comments2023-12-20T11:59:27.606+05:30Comments on Vivek live and kickin': Submitting a form while automating IE using vb.netVJhttp://www.blogger.com/profile/16622503044343820788noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-10412725.post-90115196551626589782008-09-16T23:01:00.000+05:302008-09-16T23:01:00.000+05:30Very helpful - thanks.for Padiyath Deepak - if it ...Very helpful - thanks.<BR/>for Padiyath Deepak - if it still helps, I suspect form 0 is not the form with the button you are looking to submit. Try forms[1]Unknownhttps://www.blogger.com/profile/00899582046887747777noreply@blogger.comtag:blogger.com,1999:blog-10412725.post-60100155671760890172008-08-18T17:20:00.000+05:302008-08-18T17:20:00.000+05:30Hi, I tried to submit the form using both t...Hi, <BR/> I tried to submit the form using both the way <BR/>(1.WebBrowser1.Document.Forms(0).InvokeMember("Submit") and 2.WebBrowser1.Document.All("submitbtn").Click())<BR/><BR/>I am not sure why this happen. I could retrieve the element but invokemember and click are not working. The element has the id "Submit" and it returns an object successfully. My code lokks sumthng like this <BR/><BR/>this.webBrowser1.Document.GetElementById("username").SetAttribute("value","***");<BR/> this.webBrowser1.Document.GetElementById("password").SetAttribute("value","***");<BR/> webBrowser1.Document.Forms[0].InvokeMember("Submit()"); --> The last line does not generate any result<BR/><BR/><BR/>Is thr a Solution.... <BR/><BR/>Thanks,<BR/><BR/>Deepak PadiyathPadiyath Deepakhttps://www.blogger.com/profile/03568389277430814328noreply@blogger.comtag:blogger.com,1999:blog-10412725.post-39445206233600060462008-04-04T22:32:00.000+05:302008-04-04T22:32:00.000+05:30can you please look at the scenario when using AJA...can you please look at the scenario when using AJAX controls, using update panel? When using "Submit", it just post backs the control does not do much in the screen...Anonymoushttps://www.blogger.com/profile/13164794113853371162noreply@blogger.comtag:blogger.com,1999:blog-10412725.post-1159236000040764862006-09-26T07:30:00.000+05:302006-09-26T07:30:00.000+05:30Your post was very helpful. However, I wasn't abl...Your post was very helpful. However, I wasn't able to submit the form using your WebBrowser1.Document.Forms(0).InvokeMember("Submit") statement. Instead I ended up clicking the submit button as follows: WebBrowser1.Document.All("submitbtn").Click()Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-10412725.post-1154894928840419992006-08-07T01:38:00.000+05:302006-08-07T01:38:00.000+05:30Thanks so much for the info. Helped me a lot!Thanks so much for the info. Helped me a lot!Anonymousnoreply@blogger.com