Support and test for submit() method in webviews.