Example #1
0
 def test_should_not_able_to_use_other_datasender_mobile_number(self):
     self.all_datasenders_page.search_with('rep10')
     self.all_datasenders_page.select_a_data_sender_by_id('rep10')
     self.all_datasenders_page.select_edit_action()
     page = AddDataSenderPage(self.driver)
     page.enter_datasender_mobile_number("1234567890")
     page.click_submit_button()
     time.sleep(2)
     self.assertEqual(
         page.get_error_message(),
         u'Sorry, the telephone number 1234567890 has already been registered.'
     )
 def test_should_not_able_to_use_other_datasender_mobile_number(self):
     self.all_datasenders_page.search_with('rep10')
     self.all_datasenders_page.select_a_data_sender_by_id('rep10')
     self.all_datasenders_page.select_edit_action()
     page = AddDataSenderPage(self.driver)
     page.enter_datasender_mobile_number("1234567890")
     page.click_submit_button()
     time.sleep(2)
     self.assertEqual(
         page.get_error_message(),
         u'This phone number is already in use. Please supply a different phone number'
     )