From 3c118a53e2116a28aa55ad82dbea4a66bd75f462 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Fri, 3 Dec 2021 09:08:45 +0800 Subject: [PATCH] add conftest.py --- app/test/conftest.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/test/conftest.py diff --git a/app/test/conftest.py b/app/test/conftest.py new file mode 100644 index 0000000..29f6431 --- /dev/null +++ b/app/test/conftest.py @@ -0,0 +1,13 @@ +import pytest +from selenium import webdriver +from selenium.webdriver.common.desired_capabilities import DesiredCapabilities + +@pytest.fixture +def URL(): + return 'http://127.0.0.1:5000' # URL of the program + + +@pytest.fixture +def driver(): + my_driver = webdriver.Edge() # uncomment this line if you wish to run the test on your laptop + return my_driver