Question .NET WebBrowser Control and JavaScript

TBossAZ

Active member
Joined
Mar 31, 2009
Messages
43
Programming Experience
5-10
Hello everyone,

I am working on a project where I have to automate the process of entering data through a website. I decided to use the WebBrowser control in .NET for this task.

The problem I am having is that when I try to click on certain buttons, nothing happens. After lookign at the HTML code, I saw a pattern. I can click on buttons where the input type is submit, but I have trouble with the buttons where input type is button and they only have an onclick attribute with javascript code.

I have also tried to use the InvokeScript() method, but that also does not work.

The only think I can think of is that JavaScript is disabled for the WebBrowser control.

Can anyone give me any ideas on how I might be able to resolve this issue?
 
Back
Top