From 8cb323bcfc93fa30ac711ae96f1ce33a66fff759 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Thu, 4 Feb 2021 23:32:51 +0800 Subject: app/test/test_signup.py: change remote address. --- app/test/test_signup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/test') diff --git a/app/test/test_signup.py b/app/test/test_signup.py index 5ce8ab6..c2432f8 100644 --- a/app/test/test_signup.py +++ b/app/test/test_signup.py @@ -1,10 +1,11 @@ # Run the docker image using the following command: # docker run -d -p 4444:4444 selenium/standalone-chrome from selenium import webdriver +from selenium.webdriver.common.desired_capabilities import DesiredCapabilities import random, string -driver = webdriver.Remote("http://121.4.94.30:4444/wd/hub") +driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME) HOME_PAGE = 'http://121.4.94.30:91/' @@ -12,7 +13,7 @@ HOME_PAGE = 'http://121.4.94.30:91/' def test_signup(): driver.get(HOME_PAGE) - assert "English Pal -" in driver.page_source + assert 'English Pal -' in driver.page_source elem = driver.find_element_by_link_text('成为会员') elem.click() -- cgit v1.2.1