=================
#FOR FUNCTIONS =
=================
from selenium.webdriver.chrome.service import Service
def cookieClicker():
s = Service("C:Program Files (x86)chromedriver.exe")
driver = webdriver.Chrome(service=s)
=================
#FOR CLASSES =
=================
from selenium.webdriver.chrome.service import Service
class PythonOrgSearch(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome(service=Service(r"C:Program Files (x86)chromedriver.exe"))
self.driver.get("http://www.python.org")
def test_example(self):
print("Tested...")
assert True
def tearDown(self):
self.driver.close()
if __name__ == "__main__":
unittest.main()