github seleniumbase/SeleniumBase v1.46.11
Improve basic logging with date, time, and time-zone info

latest releases: v4.26.3, v4.26.2, v4.26.1...
3 years ago

Improve basic logging with date, time, and time-zone info

Example basic_test_info.txt file from latest_logs/:

examples.test_fail.MyTestClass.test_find_army_of_robots_on_xkcd_desert_island
----------------------------------------------------
Last Page: https://xkcd.com/731/
  Browser: chrome
Timestamp: 1597818345  (Unix Timestamp)
     Date: Wednesday, August 19, 2020
     Time: 2:25:45 AM  (EST/EDT, UTC-5:00)
----------------------------------------------------
Traceback: File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/Users/michael/github/SeleniumBase/examples/test_fail.py", line 17, in test_find_army_of_robots_on_xkcd_desert_island
    self.assert_element("div#ARMY_OF_ROBOTS", timeout=1)
  File "/Users/michael/github/SeleniumBase/seleniumbase/fixtures/base_case.py", line 4852, in assert_element
    self.wait_for_element_visible(selector, by=by, timeout=timeout)
  File "/Users/michael/github/SeleniumBase/seleniumbase/fixtures/base_case.py", line 3211, in wait_for_element_visible
    self.driver, selector, by, timeout)
  File "/Users/michael/github/SeleniumBase/seleniumbase/fixtures/page_actions.py", line 299, in wait_for_element_visible
    timeout_exception(NoSuchElementException, message)
  File "/Users/michael/github/SeleniumBase/seleniumbase/fixtures/page_actions.py", line 117, in timeout_exception
    raise exc(message)
Exception: Message: 
 Element {div#ARMY_OF_ROBOTS} was not present after 1 second!

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.