def get_row_data_widget(self):
     service = Find(Select, by=By.ID, value='serviceid', context=self)
     fiscal_year = Find(Select, by=By.ID, value='finyearid', context=self)
     data = {
         'first_name': self.first_name_field.get_attribute('value'),
         'last_name': self.last_name_field.get_attribute('value'),
         'email': self.email_field.get_attribute('value'),
         'fiscal_year': fiscal_year.get_text_selected(),
         'service': service.get_text_selected(),
         'amount': self.amount_field.get_attribute('value')
     }
     return data
Example #2
0
 def get_consultant(self, free=False):
     select_id = 'consultant_field' if not free else 'free_consultant_field'
     s = Find(Select, by=By.ID, value=select_id, context=self)
     return s.get_text_selected()