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