Correct code comments
parent
0a63c5354a
commit
a4608db424
|
@ -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:
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue