To write Selenium unittests in Python, you need to follow these steps:
main.py47 chars3 lines
main.py37 chars2 lines
setUp()
method of the class, create an instance of the Selenium WebDrivermain.py54 chars3 lines
test_
main.py245 chars6 lines
tearDown()
method of the class, close the web driver instancemain.py44 chars3 lines
unittest.main()
to run the tests in the command linemain.py47 chars3 lines
gistlibby LogSnag