def test_6_delete_damagegoods(self, init_env): hp = HomePage(init_env) hp.click_system() sp = SystemPage(init_env) sp.click_damagegoods() dtp = DamageTypePage(init_env) dtp.click_damage_goods_menu() dgp = DamageGoodsPage(init_env) dgp.delete_damagegoods() dgp.is_element_disappear(damage_goods_element.delete_confirm_button) dgp.is_element_disappear(damage_goods_element.delete_goods_button)
def test_5_edit_damagegoods(self, init_env): hp = HomePage(init_env) hp.click_system() sp = SystemPage(init_env) sp.click_damagegoods() dtp = DamageTypePage(init_env) dtp.click_damage_goods_menu() dgp = DamageGoodsPage(init_env) dgp.edit_damagegoods(damage_goods_datas.edit_goods_name, damage_goods_datas.edit_goods_comprice, damage_goods_datas.edit_goods_price, damage_goods_datas.edit_goods_beizhu) dgp.is_element_disappear(damage_goods_element.add_goodsname)