Submit doesn't always work.

Try clicking the button.
set btn = frm.getElementsByClassName("button1")(0)

btn.click