Skip to content

Instantly share code, notes, and snippets.

@hiendnguyen
Last active Sep 6, 2019
Embed
What would you like to do?
import unittest
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
class VNTestersTestCase(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Chrome(ChromeDriverManager().install())
self.addCleanup(self.browser.quit)
def testPageTitle(self):
self.browser.get('https://vntesters.com')
self.assertIn('Cộng Đồng Kiểm Thử Phần Mềm', self.browser.title)
if __name__ == '__main__':
unittest.main(verbosity=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment