unittest study notes

 

File "C:\Program Files\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="floor_1"]/div[2]/div[1]/div/div[2]/div[1]/h5/a"}
  (Session info: chrome=80.0.3987.132)

Today this error toss for several hours, change to change the code repeatedly, and finally found the root cause, the original in the unittest test case name can not begin test_add

Guess you like

Origin www.cnblogs.com/kongtongshu/p/12576110.html