From fedf599c7bda206ca4838fae4c0271e8f4f42c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E6=99=9F=E6=99=94?= <759539128@qq.com> Date: Mon, 6 May 2024 11:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=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 | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 app/test/test_bug551_DingZeYu.py diff --git a/app/test/test_bug551_DingZeYu.py b/app/test/test_bug551_DingZeYu.py deleted file mode 100644 index 799a562..0000000 --- a/app/test/test_bug551_DingZeYu.py +++ /dev/null @@ -1,26 +0,0 @@ -import time -import pytest -from selenium import webdriver -from selenium.webdriver import ActionChains -from selenium.webdriver.common.by import By - - -def test_bug551(): - driver = webdriver.Edge() - driver.maximize_window() - driver.get("http://127.0.0.1:5000/") - - driver.find_element(By.CSS_SELECTOR, 'a[href="/login"]').click() - driver.find_element(By.CLASS_NAME, 'username').send_keys('dzy') - driver.find_element(By.CLASS_NAME, 'password').send_keys('123456') - driver.find_element(By.CLASS_NAME, 'btn').click() - - article = driver.find_element(By.ID, 'article') - actions = ActionChains(driver) - - actions.move_to_element(article) - actions.click_and_hold() - actions.move_by_offset(450, 200) - actions.release() - actions.perform() - time.sleep(5)