how to submit a form using xcode
===

im need to automatically push a "submit" button on a webview.
i have:
        
    #import <Cocoa/Cocoa.h>
    #import <WebKit/WebKit.h>
    #import <WebKit/WebResourceLoadDelegate.h>
    @interface AppDelegate : NSObject <NSApplicationDelegate>
    
    @property (assign) IBOutlet NSWindow *window;
    - (IBAction)start:(id)sender;
    @property (weak) IBOutlet NSTextField *UserNameField;
    @property (weak) IBOutlet NSTextField *PasswordField;
    @property (weak) IBOutlet NSPopUpButton *IntervalSelector;
    @property (weak) IBOutlet WebView *browser;
    @property (weak) IBOutlet NSTextField *IDField;
    
    @end


and the browser finished loading, how can i programly push that button?
im trying for hours to di that and i cant get it done.
thanx