def test_toolbar_03_01(self): homepage = HomePage(self.driver) analysispage = AnalysisPage(self.driver) homepage.type_search("甲醛") # 输入框中输入甲醛 homepage.send_submit_btn() # 点击搜索按钮 homepage.click_config_2() # 点击实体筛选框2(此处根据搜索结果来排列,当前化学品位于筛选框第2) homepage.click_choose_all() # 点击勾选 所有 (当前化学品只有1条) homepage.click_analysis_button() # d点击进入图谱分析界面 analysispage.click_choice() # 点击工具栏 选择 analysispage.acclick_node1() time.sleep(1) analysispage.acclick_node2() time.sleep(1) analysispage.acclick_node3() time.sleep(1) analysispage.acclick_node4() time.sleep(1) analysispage.acclick_node1() time.sleep(1) analysispage.acclick_node2() time.sleep(1) analysispage.acclick_node3() time.sleep(1) analysispage.acclick_node4() BasePage.get_windows_img1(self) # 调用基类截图方法
def test_toolbar_09(self): homepage = HomePage(self.driver) analysispage = AnalysisPage(self.driver) homepage.type_search("甲醛") # 输入框中输入甲醛 homepage.send_submit_btn() # 点击搜索按钮 homepage.click_config_2() # 点击实体筛选框2(此处根据搜索结果来排列,当前化学品位于筛选框第2) homepage.click_choose_all() # 点击勾选 所有 (当前化学品只有1条) homepage.click_analysis_button() # 点击进入图谱分析界面 analysispage.click_choice() analysispage.acclick_node3() #x选择节点甲醇 analysispage.acclick_node4() #选择节点 水 analysispage.click_kuang_xuan() #点击框选 # analysispage.click#选择任意节点 analysispage.click_delete() BasePage.get_windows_img1(self) # 调用基类截图方法