summaryrefslogtreecommitdiff
path: root/tests/alert.py
blob: 4b783d50810a0070321ef14378ee9894a99f2404 (plain)
1
2
3
4
5
6
7
8
9
10
11
import unittest
import base

class Suite(base.Base):
    def test_1(self):
        """Test case 1"""
        self.start()
        el = self.xpath('a')
        el.click()
        alert = self.driver.switch_to.alert
        self.assertEqual("You clicked it!  That's some fancy shooting!", alert.text)