summaryrefslogtreecommitdiff
path: root/tests/babySpawn.py
blob: 6693e9692bc3f8c453186705947e4792874afb8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import unittest
import base
import time 

class Suite(base.Base):
    def test_1(self):
        """Test case 1"""
        self.start()
        btn = self.xpath('button')
        btn.click()
        alert = self.driver.switch_to.alert
        self.assertEqual("Hi", alert.text)