Пример #1
0
    def back(self):
        #todo:
        self.find(self._bakc_locator).click()

        # WebDriverWait(self.driver,2).until(expected_conditions.presence_of_element_located(self._close_locator))

        from page_object.page.ProfilePage import ProfilePage
        return ProfilePage()
        pass
Пример #2
0
 def goto_profile(self):
     # self.find(MainPage._profile_button).click()
     self.load_steps("../data/MainPage.yaml", "goto_profile")
     return ProfilePage()
Пример #3
0
 def gotoProfile(self):
     # self.find(MainPage._profile_button).click()  # 访问类变量要加类名
     self.loadstep('../data/MainPage.yaml', 'gotoProfile')
     return ProfilePage()
Пример #4
0
 def back(self):
     # self.find(self._back_locator).click()
     self.loadSteps(LoginPage.yaml_path, "back")
     #WebDriverWait(self.driver, 2).until(expected_conditions.presence_of_element_located(self._close_locator))
     from page_object.page.ProfilePage import ProfilePage
     return ProfilePage()
Пример #5
0
 def gotoProfile(self):
     self.find(MainPage._profile_button).click()
     return ProfilePage()
Пример #6
0
 def gotoProfile(self):
     # self.find(MainPage._profile_button).click()
     # return ProfilePage()
     self.load_yaml(MainPage.data_path, "gotoProfile")
     return ProfilePage()
Пример #7
0
 def gotoProfile(self):
     #self.find(MainPage._profile_button).click()
     self.loadStep("../data/MainPage.yaml", "gotoProfile")  #使用yaml进行改造
     return ProfilePage()
Пример #8
0
	def back(self):
		self.find(self._back_locator).click()
		self.find(self._md_buttonDefaultNegative).click()
		from page_object.page.ProfilePage import ProfilePage
		#todo:
		return ProfilePage()
Пример #9
0
 def back(self):
     self.find(self._back_locator).click()
     from page_object.page.ProfilePage import ProfilePage  #为什么会这样?
     return ProfilePage()