summaryrefslogtreecommitdiff
path: root/tests/babySpawn.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/babySpawn.py')
-rw-r--r--tests/babySpawn.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/babySpawn.py b/tests/babySpawn.py
new file mode 100644
index 00000000..6693e969
--- /dev/null
+++ b/tests/babySpawn.py
@@ -0,0 +1,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)