Selenium:clicking the button does not submit the form

The button is in a modal dialog window. Ideally on clicking the said button the modal window should close and the form in the main window must be submitted. Thjis is what happens when i do this manually. When i perform this through the script, the modal window closes but the page in the parent window is not submitted.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Suveer PatilQA AnalystCommented:
i too faced this problem. check the below link yu may get solution...i tried it sometimes it is working sometimes it is not. 
PearlJamFanaticAuthor Commented:
nah, that won't work. The child window is a modal window dialog form.
Bryan ButlerCommented:
Can you "hit the spacebar" when this button is "highlighted" instead of clicking on it?
All Courses

From novice to tech pro — start learning today.