0
0
Fork 0

更新 app/test/test_bug551_DingZeYu.py

Bug551-DingZeYu
丁晟晔 2024-05-19 21:21:25 +08:00
parent 7fe3feae9a
commit 9f6a007426
1 changed files with 3 additions and 4 deletions

View File

@ -8,12 +8,11 @@ from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support.wait import WebDriverWait
from helper import signup from helper import signup
def test_bug551(): def test_bug551(driver, URL):
driver = webdriver.Edge()
driver.maximize_window() driver.maximize_window()
driver.get("http://127.0.0.1:5000/") driver.get(URL)
username, password = signup("http://127.0.0.1:5000/", driver) username, password = signup(URL, driver)
article = driver.find_element(By.ID, 'article') article = driver.find_element(By.ID, 'article')
actions = ActionChains(driver) actions = ActionChains(driver)