def test_social_media_icons(self): gridPage = GridPage(self.driver) settings_page = SettingsPage(self.driver) settings_page_asserts = SettingsPageAsserts(self.driver) gridPage.tapSettingsIcon() settings_page.settings_premium_purchase() settings_page.tap_instagram_icon() settings_page_asserts.instagram_layout_assert() sleep(5) self.driver.back() settings_page.tap_facebook_icon() sleep(5) self.driver.back() settings_page.tap_twitter_icon() settings_page_asserts.twitter_app_assert() sleep(5) self.driver.back() settings_page.tap_youtube_icon() settings_page_asserts.youtube_app_assert() sleep(5) self.driver.back() settings_page.tap_snapchat_icon() sleep(5) self.driver.back() sleep(2) self.driver.back() settings_page_asserts.hd_switch_assert()
def non_hd_filter_export(self): helper_methods = Helper_Methods(self.driver) gridPage = GridPage(self.driver) settingsPage = SettingsPage(self.driver) editorPage = EditorPage(self.driver) helper_methods.addAllFiltersFromManager() # taps on the settings icon gridPage.tapSettingsIcon() # taps the hd switch settingsPage.HDExportButtonTap() self.driver.back() for x in filter_list: helper_methods.setupFilter() # taps on the filter print("(" '%s' ")" % x) for i in range(0, 50): try: WebDriverWait(self.driver, 30).until( EC.presence_of_element_located( (By.ID, ("com.jsdev.instasize:id/ibExport")))) filter = self.driver.find_element_by_xpath("(" "%s" ")" % x) filter.click() editorPage.purchase_premium_banner() break except NoSuchElementException: sleep(2) editorPage.swipeInEditor() pass helper_methods.filterExportInstagram()
def test_privacy_policy(self): grid_page = GridPage(self.driver) settings_page = SettingsPage(self.driver) asserts = SettingsPageAsserts(self.driver) grid_page.tapSettingsIcon() settings_page.settings_premium_purchase() settings_page.tap_terms_and_conditions() asserts.terms_and_conditions_assert()
def test_write_a_review_in_settings(self): grid_page = GridPage(self.driver) settings_page = SettingsPage(self.driver) asserts = SettingsPageAsserts(self.driver) grid_page.tapSettingsIcon() settings_page.settings_premium_purchase() settings_page.tap_write_a_review() asserts.play_store_assert()
def test_send_feedback_in_settings(self): grid_page = GridPage(self.driver) settings_page = SettingsPage(self.driver) asserts = SettingsPageAsserts(self.driver) grid_page.tapSettingsIcon() settings_page.settings_premium_purchase() settings_page.tap_send_feedback() settings_page.tap_gmail_for_feedback() asserts.gmail_assert()