def test_baidu_search_case1(self): page = BaiduPage(self.driver) page.get('https://www.baidu.com') page.search_input = 'selenium' page.search_button.click() sleep(2) self.assertEqual(self.driver.title, "selenium_百度搜索")
def test_baidu_search_case1(self): page = BaiduPage(self.driver) page.get("https://www.baidu.com") page.search_input.send_keys("selenium") page.search_button.click() sleep(2) self.assertEqual(page.get_title, "selenium_百度搜索")
def test_baidu_search_case1(self): page = BaiduPage(self.driver) page.open() page.search_input("selenium") page.search_button() sleep(2) self.assertEqual(page.get_title(), "selenium_百度搜索")
def test01(self): page = BaiduPage(self.driver) page.open() page.search_input('selenium') page.search_button() sleep(3) self.assertEqual(page.get_title(), "selenium_百度搜索")
def test_search1(self): bd = BaiduPage(self.driver) bd.input_text('python') bd.button_click()
def test_baidu_search_case3(self): self.driver.get(self.base_url) bd = BaiduPage(self.driver) bd.search_input("page object") bd.search_button()
def test_baidu_search_case2(self): self.driver.get(self.base_url) bd = BaiduPage(self.driver) bd.search_input("unittest") bd.search_button()
def test_baidu_search_case1(self): self.driver.get(self.base_url) bd = BaiduPage(self.driver) bd.search_input("selenium") bd.search_button()