ele.click() print("下架成功") else: print("暂无数据") def see_oplog(): goodWatikiInst.see_oplog() time.sleep(2) goodWatikiInst.close_modal_content() def see_goods_detail(goodName="八桂大明山包装饮用水18L"): goodHref = browser.find_element_by_link_text(goodName) goodHref.click() print(goodHref.text) if __name__ == "__main__": goodWatikiInst.openPages(first_level="水票管理", second_level="平台水票管理") goodWatikiInst.select_city(city="南宁市") # filter_condition() # watiki_order() # add_ticket() # add_watikiMeal(2) # show_rule() # put_off_shelves() see_oplog() # see_goods_detail()
browser.find_element_by_css_selector("input[name = 'remarks']").send_keys("自动化测试") # browser.find_element_by_css_selector(".btn.btn-primary").click() browser.find_element_by_id("makeorderBut").click() time.sleep(2) # orderWatikiInst.close_SweetAlert() else: pass def see_settle_detailed(): serverList = browser.find_elements_by_css_selector(".fa.fa-server") if len(serverList) > 0: serverList[0].click() time.sleep(2) orderWatikiInst.close_modal_content() # orderWatikiInst.close_SweetAlert() else: pass if __name__ == "__main__": orderWatikiInst.openPages(first_level = "水票管理",second_level = "已售出平台水票") orderWatikiInst.select_city(city = "南宁市") # filter_condition() # see_watiki_details() # see_oplog() # refund_watiki() # exchange_watiki() see_settle_detailed()