def add_contact_to_group(self, unique_id, group_name):
     self.refresh()
     self.search_with(unique_id)
     self.select_a_data_sender_by_id(unique_id)
     self.perform_datasender_action('add to groups')
     add_group_page = AddGroupPage(self.driver)
     add_group_page.add_or_remove_contact_to_group(group_name)
     add_group_page.click_on_contact_to_group_button()
     add_group_page.wait_for_table_to_load()
 def go_to_add_group_page(self):
     self.driver.find(by_css('.add_link')).click()
     return AddGroupPage(self.driver)
Example #3
0
 def add_contacts_to_new_group(self, group_name):
     self.perform_datasender_action(ADD_TO_NEW_GROUP)
     add_group_page = AddGroupPage(self.driver)
     return add_group_page.create_a_group(group_name)