Example #1
0
 def expected_page(self, expectation):
     if expectation == 'user_profile':
         from pages.user.user_profile_edit import UserProfileEditPage
         return UserProfileEditPage(self.testsetup)
     elif expectation == 'home_page':
         from pages.home import HomePage
         return HomePage(self.testsetup)
Example #2
0
 def login(self, user):
     self.click_login()
     browser_id = BrowserID(self.selenium, self.timeout)
     browser_id.sign_in(user['email'], user['password'])
     Wait(self.selenium, self.timeout).until(
         EC.visibility_of_element_located(self._logout_menu_item_locator))
     from pages.user.user_profile_edit import UserProfileEditPage
     return UserProfileEditPage(self.base_url, self.selenium).wait_for_page_to_load()
Example #3
0
 def click_edit_profile_button(self):
     self.selenium.find_element(*self._edit_profile_button_locator).click()
     return UserProfileEditPage(self.base_url, self.selenium).wait_for_page_to_load()
 def click_edit_profile_button(self):
     self.find_element(*self._edit_profile_button_locator).click()
     return UserProfileEditPage(self.testsetup)