def test_TC009_text_modalCheckTopic(self):
     subjects = StudentTutorPage(self.driver)
     sub_list = subjects.get_ModalSubjects()
     sub_topic = BasePage(self.driver)
     sub_locators = STL.MODAL_SUB_LOCATORS
     sub_topic_locators = STL.MODAL_SUB_TOPIC_LOCATORS
     for i, j, k in zip(sub_list, sub_locators, sub_topic_locators):
         sub_topic.el_click(j)
         print(f'{i} Subject Clicked')
         topic = []
         topics = sub_topic.el_get_all(k)
         for m in topics:
             topic.append(m.text)
         print(f'{i} : {topic}')
         if i == 'SCIENCE':
             assert topic == STL.SCIENCE_TOPICS
             print('Science topics matches with the actual.')
         elif i == 'MATH':
             assert topic == STL.MATH_TOPICS
             print('Math topics matches with the actual.')
         else:
             return False
 def test_TC008_text_modalSubNames(self):
     sub = StudentTutorPage(self.driver)
     expected_list = STL.SUBJECTS
     print(f'Expected: {expected_list}')
     actual_list_modal = sub.get_ModalSubjects()
     assert actual_list_modal == expected_list