From 795d572f1903547fb8dbbd35d64966d95f5a8f35 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Thu, 4 Feb 2021 23:48:21 +0800 Subject: app/test/test_signup.py: curious that find_link_by_text did not work. --- app/test/test_signup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app') diff --git a/app/test/test_signup.py b/app/test/test_signup.py index c2432f8..35afcd6 100644 --- a/app/test/test_signup.py +++ b/app/test/test_signup.py @@ -31,7 +31,6 @@ def test_signup(): assert '恭喜,你已成功注册' in driver.page_source assert uname in driver.page_source - elem = driver.find_element_by_link_text('开始使用') - elem.click() + driver.get(HOME_PAGE + uname) assert 'English Study Room for ' + uname in driver.title -- cgit v1.2.1