From 9f6a0074264a476c66f65e9df66e7e96f552901d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E6=99=9F=E6=99=94?= <759539128@qq.com> Date: Sun, 19 May 2024 21:21:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20app/test/test=5Fbug551=5FD?= =?UTF-8?q?ingZeYu.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/test/test_bug551_DingZeYu.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/test/test_bug551_DingZeYu.py b/app/test/test_bug551_DingZeYu.py index 9fdb24f..7351dfe 100644 --- a/app/test/test_bug551_DingZeYu.py +++ b/app/test/test_bug551_DingZeYu.py @@ -8,12 +8,11 @@ from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait import WebDriverWait from helper import signup -def test_bug551(): - driver = webdriver.Edge() +def test_bug551(driver, URL): 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') actions = ActionChains(driver)