Esempio n. 1
0
 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)  # 调用基类截图方法
Esempio n. 2
0
 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)  # 调用基类截图方法
Esempio n. 3
0
 def test_toolbar_58(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()
     time.sleep(3)
     analysispage.acclick_node1()
     analysispage.acclick_node2()  #多节点进行路径分析
     analysispage.acclick_node3()
     analysispage.click_path_analysis()  # 默认是最短路径,深度为2,
     analysispage.click_confirm()  #点击确定按钮
     BasePage.get_windows_img1(self)  # 调用基类截图方法
Esempio n. 4
0
 def test_toolbar_36(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点击进入图谱分析界面
     time.sleep(3)
     analysispage.click_choice()
     analysispage.acclick_node3()
     time.sleep(1)
     analysispage.click_qie_ge()
     analysispage.click_filter()
     analysispage.click_entity_1()
     analysispage.click_entity_1()  #先删除节点,然后过滤掉化学品,然后取消过滤
     BasePage.get_windows_img1(self)  # 调用基类截图方法