def test_login(self, login_email_text, login_pass_text, expect_value): login_page_url = config.login_page_url logger.info("输入网址") login_page = LoginPage(self.driver, login_page_url) login_page.input_login_email(login_email_text) login_page.input_login_pass(login_pass_text) seller_center_page = login_page.go_to_seller_center_page() logistics_track_page = seller_center_page.go_to_seller_logistics_track_page( ) page_title = logistics_track_page.get_current_page_title() assert page_title == expect_value
def test_login(self, login_email_text, login_pass_text, expect_value): login_page_url = config.login_page_url login_page = LoginPage(self.driver, login_page_url) login_page.input_login_email(login_email_text) login_page.input_login_pass(login_pass_text) seller_center_page = login_page.go_to_seller_center_page() seller_center_page.take_logistics_track_tab_screen_shot() logger.info(seller_center_page.get_seller_center_page_title()) time.sleep(5) logistics_track_page = seller_center_page.go_to_seller_logistics_track_page( ) page_title = logistics_track_page.get_logistics_track_page_title() time.sleep(2) logger.info(page_title) assert page_title == expect_value