Exemplo n.º 1
0
    def fill_form_and_submit(self, elm, data={}):
        """
        Fill form with given data, then submit

        :param elm: Form element
        :param data: Dictionary of data for the form. \
                Keys in the dictionary represent name \
                attributes of the form elements
        """
        form = Form(elm)
        form.fill_out_and_submit(data)