Esempio n. 1
0
        def run(self,browser,logger):
            auth = AuthForm(self.browser, self.logger)
            window = BrowserWindow(self.browser,self.logger)
            navigation = Navigation(self.browser,self.logger)
            questionary = Questionary(self.browser,self.logger)

            self.do_method(auth.login_with_fb_full_scale,profiling_events.login_event,auth.User1)
            navigation.goto_top_menu_item(u"Профиль")
            questionary.expand()
            questionary.hide()
            questionary.expand()
            questionary.cancel()
            questionary.expand()
            questionary.uncheck_all_countries()
            questionary.save()
            questionary.validate_error_msg_wrong_data()
            questionary.fill_first_14_elements()
            questionary.save()
            questionary.validate_error_msg_answers_not_enough()
            questionary.check_dropdowns_to_input_transformation()
            questionary.fill_all()
            questionary.save()
            questionary.validate_saved_correctly()
            navigation.goto_top_menu_item(u"Профиль")
            questionary.expand()
            questionary.validate_filled_all()
            questionary.unfill_all()
            questionary.save()

            window.close()
Esempio n. 2
0
        def run(self, browser, logger):
            auth = AuthForm(self.browser, self.logger)
            window = BrowserWindow(self.browser,self.logger)
            navigation = Navigation(self.browser,self.logger)
            profile = Profile(self.browser,self.logger)
            vip_popup = VIPPopups(self.browser,self.logger)

            self.do_method(auth.login_with_fb_full_scale,profiling_events.login_event,auth.User1)
            navigation.goto_top_menu_item(u"Профиль")
            profile.validate_profile_view()
            self.logger.log("Profile view is validated")
            navigation.goto_tab_menu_item(u"Настройки")
            profile.validate_settings_view()
            self.logger.log("Settings view is validated")
            navigation.goto_tab_menu_item(u"Уведомления")
            profile.validate_notifications_view()
            self.logger.log("Notifications view is validated")
            navigation.goto_tab_menu_item(u"Фото")
            profile.validate_photo_view()
            self.logger.log("Photo view is validated")
            navigation.goto_tab_menu_item(u"Поклонники")
            vip_popup.validate_forbidden_nonvip()
            self.browser.back()
            navigation.goto_tab_menu_item(u"Гости")
            vip_popup.validate_forbidden_nonvip()
            self.browser.back()
            navigation.goto_tab_menu_item(u"Гороскоп")
            profile.validate_horo_view()
#            logout and login with another user to mark that user again to fix the profile marks reset
            self.logger.log("End profile navigation")
            window.close()
Esempio n. 3
0
    def set_age(self,age):
        navigation = Navigation(self.browser,self.logger)

        navigation.goto_top_menu_item(u"Профиль")
        navigation.goto_tab_menu_item(u"Настройки")
        self.enter_text(
            self.get_element_by_id(self._form_age_settings_id),
            age)
        self.click(
            self.get_element_by_id(self._save_setting_button_id))