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
def goto_profile(self): # self.find(MainPage._profile_button).click() self.load_steps("../data/MainPage.yaml", "goto_profile") return ProfilePage()
def gotoProfile(self): # self.find(MainPage._profile_button).click() # 访问类变量要加类名 self.loadstep('../data/MainPage.yaml', 'gotoProfile') return ProfilePage()
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()
def gotoProfile(self): # self.find(MainPage._profile_button).click() # return ProfilePage() self.load_yaml(MainPage.data_path, "gotoProfile") return ProfilePage()
def gotoProfile(self): #self.find(MainPage._profile_button).click() self.loadStep("../data/MainPage.yaml", "gotoProfile") #使用yaml进行改造 return ProfilePage()
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()
def back(self): self.find(self._back_locator).click() from page_object.page.ProfilePage import ProfilePage #为什么会这样? return ProfilePage()