Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TheRuffianReport-1.0.0.tar.gz (12.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page