1
0
Fork 0

Correct code comments

Bug533-Yuyikai
Lan Hui 2024-04-09 13:21:44 +08:00
parent 0a63c5354a
commit a4608db424
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ def signup(URL, driver):
elem = driver.find_element_by_id('password2') elem = driver.find_element_by_id('password2')
elem.send_keys(password) elem.send_keys(password)
elem = driver.find_element_by_class_name('btn') # 找到"登录"按钮 elem = driver.find_element_by_class_name('btn') # 找到"注册"按钮
elem.click() elem.click()
try: try:

View File

@ -15,7 +15,7 @@ def test_add_word(URL, driver):
elem = driver.find_element_by_xpath('//form[1]//button[1]') # 找到"把生词加入我的生词库"按钮 elem = driver.find_element_by_xpath('//form[1]//button[1]') # 找到"把生词加入我的生词库"按钮
elem.click() elem.click()
elem = driver.find_element_by_name('add-btn') # 找到加入我的生词簿按钮 elem = driver.find_element_by_name('add-btn') # 找到"加入我的生词簿"按钮
elem.click() elem.click()
elems = driver.find_elements_by_xpath("//p[@class='new-word']/a") elems = driver.find_elements_by_xpath("//p[@class='new-word']/a")