Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add RF keywords to support radio buttons

  • Loading branch information...
commit 18e81fc86f78faa51cd4dff8c3f3233cd92d22e5 1 parent e03f9ee
@semperos authored
Showing with 20 additions and 1 deletion.
  1. +20 −1 src/robot_framework_clowd/keywords/radio.clj
View
21 src/robot_framework_clowd/keywords/radio.clj
@@ -1 +1,20 @@
-(in-ns 'robot-framework-clowd.keywords)
+(in-ns 'robot-framework-clowd.keywords)
+
+;; ## Actions
+
+(defn select-radio-button
+ "Select the specified radio button"
+ [descriptor]
+ (browser-> :radio descriptor wd/select))
+
+;; ## Conditions
+
+(defn radio-button-should-be-selected
+ "Verify that the specified radio button form element is selected"
+ [descriptor]
+ (throw-not-selected :radio descriptor))
+
+(defn radio-button-should-not-be-selected
+ "Verify that the specified radio button form element is selected"
+ [descriptor]
+ (throw-selected :radio descriptor))
Please sign in to comment.
Something went wrong with that request. Please try again.