def test2(self): '查询文案' self.driver.find_element_by_xpath( '//*[@id="fdSetting"]/div[2]/span').click() self.driver.find_element_by_id('txtTitle').clear() self.driver.find_element_by_id('txtTitle').send_keys('测试查询') BasicAction.search(self.driver) self.assertIn('测试', self.driver.find_element_by_css_selector('h2').text, '查询文案修改失败')
def test1(self): '地址' BasicAction.search(self.driver) self.assertIn('查询', self.driver.find_element_by_css_selector('h2').text, '地址跳转失败')