1
0
Fork 0

add conftest.py

Lanhui-Selenium
Hui Lan 2021-12-03 09:08:45 +08:00
parent 5cc430714a
commit 3c118a53e2
1 changed files with 13 additions and 0 deletions

13
app/test/conftest.py Normal file
View File

@ -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