SeleniumBase/examples/test_fail.py

12 lines
357 B
Python
Raw Normal View History

2015-12-05 05:11:53 +08:00
""" This test was made to fail on purpose to demonstrate the
logging capabilities of the SeleniumBase Test Framework """
from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_find_army_of_robots_on_xkcd_desert_island(self):
2016-04-30 08:41:03 +08:00
self.open("http://xkcd.com/731/")
self.find_element("div#ARMY_OF_ROBOTS", timeout=0.7)