def test_login5(self): '''用户名和密码正确''' self.user_login_verify(username="******", password="******") po = Login(self.driver) self.assertEqual(po.user_login_success(), 'zhengyin') function.insert_img(self.driver, "user_password_true.png") sleep(5)
def login_into_ImageCenter(self): Login(self.driver).user_login() Page.open(self)
def into_select_image(self): Login(self.driver).user_login() Page.open(self)
def into_home_page(self): Login(self.driver).user_login()
def login_into_service(self): Login(self.driver).user_login() Page.open(self)
def lonin_images_build_page(self): Login(self.driver).user_login() Page.open(self)
def user_login_verify(self, username="", password=""): Login(self.driver).user_login(username, password)
def login_into_MyImage(self): Login(self.driver).user_login() Page.open(self)
def login_into_MyCollection(self): Login(self.driver).user_login() Page.open(self)