james bradbery

james bradbery

  • NA
  • 19
  • 12.3k

Clicking a button a website in c#

Mar 8 2012 5:15 AM
hi there again guys as usual i have a problem which i would like some help with
i have a website with a textbox and a click button
also it has 2 check boxes

my plan is to enter a weblink into the textbox untick 2 check boxes and click submit button all in c# so i want my app to load page and enter details programatically , enter weblink , untick boxes , press submit button and allow page to load in c# webbrowser control with _self

please help guys thanks

the source code for the submit buttin is

input type="image" src="data:image/gif;base64,R0lGODdhHgAOAHcAACwAAAAAHgAOAIcAAACAAAAAgACAgAAAAICAAIAAgIDAwMDA3MCmyvBHRkNHRmJmRkNmRmJmZUNHRoJHZaFHhMBmo+CERkOjZUPChEPChGLgo2KEhIKEwf+j4P//wYL/4KHC/+DC/////8Dg/////+D///9wAtIAAAAAAAAAAAAAAAAFAAJwAtIAAAAAAAAXC7AAAAAAAAwAAAAAAAMqCuAWbFgWbXAT7XAXDJgAAAAS7xQAAAAS8Egy4O34Lrj///42L+c2LoIAAAAaxTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAS8BhHNEwAAAAAAAAAAAAAAAAS8NwS8NwAAoES8Nw6ajQAAoES8CBBzNE4CrRC1IFC1Ik6ajQ4CtRHMMcS8EhHMN5HMOYS8PRHMPAAAAAS8NwAAoEAAAA6ajQS8GBCY+4AAoEAAAEAAA8AAAAS8IzIxOcUBNoAAoEAAAEAAA8AAoG6q80AAAAS8NwAAoES8JwS8LjNmNgAAAcS8dwAAAcAAAA6ajRIxCE6ajRI0J06ajQS8mRHBP8S8vAS8mQ6ajT////IxZDIxkEAAAAAAAEAAAAAAAAS8KgaqYQS9NzNYpsS8RjHuxMUBNoAAAcZAdwAAAAS8STIzZDNmNgAAEAS8WDHu7zHu4e6hxUAAAAS8dwAAAcAAAEAAAAS8TB6BMgS8fTNYptvzeX///7Hu4fIxOcUBNoAAAcZAdwAAAAAAAe6q80AAAAS8dwAAAcS8ZwS8bjNmNjHu4cS8gTIxkHIxf66hHEAAAdAewQS9DgAACQAAAEAAAAAAAAAAHD////////IxZDIxkES8ngAAAEAAAAAAAAS8agBD8QS9AjNYptgsH3///7Ixf7IGzEAAABAewQUBNoAAAcZAdwAAAcS82QAsCkAAAA6ajQS8lTKK+5AewQUBNoAAAcZAdwAAAAAAAES87hHNTBAewQUBNoAAAcZAdwS9AhHQT5HQUY6ajSgoKSAgID/AAAA/wD//wAAAP//AP8A//////+Yd0sImABFCBxIsKDBgwgTKkSYQYHDDQI1WFg4UCJBDQsugIAw4YOHBxUoivgYsmLGgRsdUgghwaGCCyMfOFjgUsFKgR9fDiQpQkMDDiIidPzYMWZJkwqK8hTYUAEDDkuXFmz5lCfGjhGqgsS59WDDDTwlPA06tKtUES0hioW6Ne1HrSXPBnUJc+6EDhAcYlAAtqvdDyIDCx5MWHBAADs=" title="Go!" alt="Start surfing" class="button" autofocus/>

form action="/includes/process.php?action=update" enctype="multipart/form-data"

onkeypress="return handleEnter(this, event)"

method="post" onsubmit="return updateLocation(this);" class="form">


the source for the check boxes are

input id="jsOnOff" name="js" type="hidden" value="0"/>

input type="checkbox" name="allowCookies" id="allowCookies" checked="checked">

label for="allowCookies" class="tooltip" onmouseover="tooltip('')" onmouseout="exit();">Allow Cookies</label>

<input type="checkbox" name="stripJS" id="stripJS" checked="checked">

label for="stripJS" class="tooltip" onmouseover="tooltip('')" onmouseout="exit();">Remove Scripts</label>

<input type="checkbox" name="stripObjects" id="stripObjects">

label for="stripObjects" class="tooltip" onmouseover="tooltip('')" onmouseout="exit();">Remove Objects</label>

and the source for the textbox is


input id="address_box" type="text" name="u" value="http://" size="42" onfocus="this.select()"/>