Submits a form identified by locator.

If locator is empty, first form in the page will be submitted.