Well, yes and no.
Yes you can move the mouse pointer:
http://stackoverflow.com/questions/2...-in-c-on-linux
Yes you could e.g. take a screenshot and try to find a button with OK on it, or maybe download the HTML for the web page and then parse that to try and work out which buttons have OK on them.
No, it would not be easy at all to do.
A far better way to do it would be to use something like
iMacros (also available for Chrome and IE) which would allow you to automate using web forms etc.