元素检测三
2019-10-22 本文已影响0人
水漾涟漪penny
def check_register():
print("check register!")
print("==============================================")
try:
register = driver.find_element_by_id('com.systoon.iningde:id/tv_user_register')
except NoSuchElementException:
print("no register!")
else:
register.click()
print("click register!")
check_register()