test
Project description
b"#Introduction\nshell\n Based on TheRuffianReport development,\n new assertion failure screenshot,\n screenshot display and DingTalk function\n
\n\n#Installing\n pip install TheRuffianReport\n python\xe2\x89\xa53.0\n\n#Author\n bugpz2779@gmail.com\n\n#Function Introduction\n\npython\n # screenshot\nimport unittest\nfrom selenium import webdriver\n\nfrom TheRuffianReport.HTMLTestRunner import failure_monitor\n\n\nclass Test_demo(unittest.TestCase):\n def setUp(self) -> None:\n self.driver = webdriver.Chrome()\n self.failureException = failure_monitor(self, 'images')\n self.driver.get('https://www.baidu.com')\n\n def test_baidu(self):\n self.driver.find_element('id', 'kw').send_keys('python')\n self.driver.find_element('id', 'su').click()\n self.assertEqual(self.driver.find_element('id', 'kw').get_attribute('value'), 'selenium')\n
"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.