summaryrefslogtreecommitdiff
path: root/tests/button.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/button.py')
-rw-r--r--tests/button.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/button.py b/tests/button.py
new file mode 100644
index 00000000..14159fec
--- /dev/null
+++ b/tests/button.py
@@ -0,0 +1,13 @@
+import unittest
+import base
+
+class Suite(base.Base):
+ def test_1(self):
+ """Test case 1"""
+ self.start('main')
+ b = self.xpath('button')
+
+ b.click()
+ alert = self.driver.switch_to.alert
+ self.assertEqual("AHOY", alert.text)
+ alert.accept()