0
0
Fork 0
bug555-fangchen
方晨 2024-05-20 21:25:51 +08:00
parent a42e63dc27
commit 35a6f1c828
4 changed files with 2 additions and 4 deletions

View File

@ -9,5 +9,5 @@ def URL():
@pytest.fixture
def driver():
my_driver = webdriver.Edge() # uncomment this line if you wish to run the test on your laptop
my_driver = webdriver.Chrome()
return my_driver

View File

@ -8,11 +8,9 @@ from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import UnexpectedAlertPresentException, NoAlertPresentException, NoSuchElementException, \
TimeoutException
from conftest import driver
from conftest import URL
driver = webdriver.Chrome()
def test_bug555():
driver = webdriver.Edge()
try:
driver.maximize_window()
base_url = "http://127.0.0.1:5000"