Python Selenium test does not run when using absolute path to Firefox geckodriver
Your program was near perfect. You just need to annotate the siteTest
class as unittest.TestCase
. So effectively, you need to rewrite the line:
class siteTest:
as:
class siteTest(unittest.TestCase):
You probably need to annotate your set up and tear down methods.
@classmethod def setUp(self) . .@classmethod def tearDown(self) . .
Here, I have annotated as class method so it will run only once for the class.