'View form details'

def view_form(self, id, form_type='', form_name='', form_desc='', form_layout_name='', field_dicts=[]):

    self.visit_url(('%s/forms/view_latest_form_definition?id=%s' % (self.url, id)))
    self.check_page_for_string(form_name)
    self.check_page_for_string(form_layout_name)
    for (i, field_dict) in enumerate(field_dicts):
        self.check_page_for_string(field_dict['label'])
        self.check_page_for_string(field_dict['desc'])
        self.check_page_for_string(field_dict['type'])
        if (field_dict['type'].lower() == 'selectfield'):
            for (option_index, option) in enumerate(field_dict['selectlist']):
                self.check_page_for_string(option)
