示例#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()
 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()