def test_param_conf(self): info = App().start().main().goto_search_brand().select_Model().goto_paramconf() assert info == ("参数概述", "动力") # def test_quit(self): # App().quit()
def setup(self): self.main = App()
def test_red_envelope(self): content = App().start().main().goto_search_brand().select_Model().goto_red_envelope() assert content == "购车红包1000元"
def test_dalers_ask_price(self): btn = App().start().main().goto_search_brand().select_Model( ).goto_model().goto_dealers_ask_price() assert btn == "获取底价"
def test_second_hand_car(self): res_title = App().start().main().goto_search_brand().select_Model( ).goto_second_hand_car() assert res_title == "宝马5系 2018款 改款 530Li 尊享版 M运动套装"
def test_install_car(self): title = App().start().main().goto_search_brand().select_Model( ).goto_Install_car() assert title == "金融分期"
def test_model_compared(self): result = App().start().main().goto_search_brand().select_Model().goto_model().goto_model_compared() assert result == "已加"
def test_video(self): child_title = App().start().main().goto_search_brand().select_Model().goto_video() assert child_title == "2021款宝马5系升级了哪些"
def test_model_change(self): result = App().start().main().goto_search_brand().select_Model( ).goto_model().goto_model_change() assert result == "2018款 525Li 豪华设计套装"
def test_model_staging(self): btn = App().start().main().goto_search_brand().select_Model( ).goto_model().goto_model_staging() assert btn == "申请贷款"
def test_latest_trans_price(self): info = App().start().main().goto_search_brand().select_Model( ).goto_latest_trans_price() assert info == ("本地最新成交价", "4*.59万")