Traceback - XXOK/XXOK-selenium GitHub Wiki
Traceback
Error์ ๋ฐ์ ์์น๋ฅผ ์ถ์ ํ ์ ์๋ Call stack์ ์ถ๋ ฅํด์ค๋ค.
except Exception
๋์ ์ ํจ์๊ฐ ์คํ๋๋๋ก ๊ตฌํํ์๋ค.
import sys, traceback
try:
...
except Exception:
traceback.print_exc(file=sys.stdout) # ์๋ฌ์คํ ์ ๋ณด๋ฅผ stdout์ผ๋ก print
print("์๋ฌ ๋ฐ์ ํ์ด์ง URL : ", self.driver.current_url) # ์ต์ข
page url ์ ์ด์ฃผ๊ธฐ
Result
wwwauto/test_suite.py::detail_oneroomTest::runTest <- wwwauto/www_03_detail_oneroom.py Traceback (most recent call last):
File "/Users/yeonsin/XXOK-selenium/wwwauto/www_03_detail_oneroom.py", line 59, in runTest
self.wait.until(EC.visibility_of_element_located((By.CLASS_NAME, 'has_d21'))).click() # ์๋ฌ ๋ฐ์ ์ฝ๋
File "/Users/yeonsin/selenium/lib/python3.6/site-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace) # ์๋ฌ ๋ฐ์ ์์ธ
selenium.common.exceptions.TimeoutException: Message:
์๋ฌ ๋ฐ์ ํ์ด์ง URL : https://www.zigbang.com/