from seleniumbase import BaseCase


class MyTestClass(BaseCase):

    def test_basic(self):
        self.open('http://xkcd.com/353/')
        self.assert_element('img[alt="Python"]')
        self.click('a[rel="license"]')
        text = self.get_text("div center")
        self.assertTrue("reuse any of my drawings" in text)
        self.open('http://xkcd.com/1481/')
        title = self.get_attribute('#comic img', 'title')
        self.assertTrue('connections to the server' in title)
        self.click_link_text('Blag')
        self.assert_text('The blag of the webcomic', 'h2')
        self.update_text('input#s', 'Robots!\n')
        self.assert_text('Hooray robots!', '#content')
        self.open('http://xkcd.com/1319/')
        self.assert_text('Automation', 'div#ctitle')

from seleniumbase import BaseCase


class MyTestClass(BaseCase):

    def test_basic(self):
        self.open('http://xkcd.com/353/')
        self.assert_element('img[alt="Python"]')
        self.click('a[rel="license"]')
        text = self.get_text("div center")
        self.assertTrue("reuse any of my drawings" in text)
        self.open('http://xkcd.com/1481/')
        title = self.get_attribute('#comic img', 'title')
        self.assertTrue('connections to the server' in title)
        self.click('link=Blag')
        self.assert_text('The blag of the webcomic', 'h2')
        self.update_text('input#s', 'Robots!\n')
        self.assert_text('Hooray robots!', '#content')
        self.open('http://xkcd.com/1319/')
        self.assert_text('Automation', 'div#ctitle')

Update a click in a test