diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-04 23:32:51 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-04 23:32:51 +0800 |
commit | 8cb323bcfc93fa30ac711ae96f1ce33a66fff759 (patch) | |
tree | aae1d5efba5508597b8139335caacb89c6f34790 | |
parent | 92d95e566a565a4acb320266293d760c058c512c (diff) |
app/test/test_signup.py: change remote address.
-rw-r--r-- | app/test/test_signup.py | 5 |
1 files changed, 3 insertions, 2 deletions
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() |