
from seleniumbase import BaseCase


class MyTestClass(BaseCase):

    def test_find_army_of_robots_on_xkcd_desert_island(self):
        self.open("http://xkcd.com/731/")
        self.assert_element("div#ARMY_OF_ROBOTS", timeout=0.7)


from seleniumbase import BaseCase


class MyTestClass(BaseCase):

    def test_find_army_of_robots_on_xkcd_desert_island(self):
        self.open("http://xkcd.com/731/")
        print("\n(This test fails on purpose)")
        self.assert_element("div#ARMY_OF_ROBOTS", timeout=1)

Update test that fails on purpose.
Update test that fails on purpose.

  
  from seleniumbase import BaseCase
  
  
  class MyTestClass(BaseCase):
  
      def test_find_army_of_robots_on_xkcd_desert_island(self):
          self.open("http://xkcd.com/731/")
+         print("\n(This test fails on purpose)")
-         self.assert_element("div#ARMY_OF_ROBOTS", timeout=0.7)
+         self.assert_element("div#ARMY_OF_ROBOTS", timeout=1)
  
Update test that fails on purpose.
## Code Before:

from seleniumbase import BaseCase


class MyTestClass(BaseCase):

    def test_find_army_of_robots_on_xkcd_desert_island(self):
        self.open("http://xkcd.com/731/")
        self.assert_element("div#ARMY_OF_ROBOTS", timeout=0.7)

## Instruction:
Update test that fails on purpose.
## Code After:

from seleniumbase import BaseCase


class MyTestClass(BaseCase):

    def test_find_army_of_robots_on_xkcd_desert_island(self):
        self.open("http://xkcd.com/731/")
        print("\n(This test fails on purpose)")
        self.assert_element("div#ARMY_OF_ROBOTS", timeout=1)
