features/element.feature in page-object-0.0.3 vs features/element.feature in page-object-0.0.4
- old
+ new
@@ -136,25 +136,98 @@
And I should know it is equal to itself
And I should know its' tag name is "input"
And I should know the attribute "readonly" is false
And I should be able to click it
+ Scenario: Text Area element methods
+ When I retrieve the text area
+ Then I should know it exists
+ And I should know it is visible
+ And I should know its' text includes ""
+ And I should know its' value is ""
+ And I should know it is equal to itself
+ And I should know its' tag name is "textarea"
+ And I should know the attribute "readonly" is false
+ And I should be able to click it
+
Scenario: Image element methods
When I get the image element
Then I should know it exists
And I should know it is visible
And I should know its' text includes ""
And I should know it is equal to itself
And I should know its' tag name is "img"
And I should know the attribute "readonly" is false
And I should be able to click it
- @watir_only
- Scenario: Image element methods in watir
- When I get the image element
- Then I should know its' value is ""
+ @watir_only
+ Scenario: Image element methods in watir
+ When I get the image element
+ Then I should know its' value is ""
- @selenium_only
- Scenario: Image element methods in selenium
- When I get the image element
- Then I should know its' value is nil
+ @selenium_only
+ Scenario: Image element methods in selenium
+ When I get the image element
+ Then I should know its' value is nil
+ Scenario: Hidden Field element methods
+ When I retrieve the hidden field element
+ Then I should know it exists
+ And I should know it is not visible
+ And I should know its' text includes ""
+ And I should know its' value is "12345"
+ And I should know it is equal to itself
+ And I should know its' tag name is "input"
+ And I should know the attribute "readonly" is false
+
+ Scenario: Form element methods
+ When I locate the form
+ Then I should know it exists
+ And I should know it is visible
+ And I should know its' text includes ""
+ And I should know it is equal to itself
+ And I should know its' tag name is "form"
+ And I should know the attribute "readonly" is false
+
+ @watir_only
+ Scenario: Form element methods in watir
+ When I locate the form
+ Then I should know its' value is ""
+
+ @selenium_only
+ Scenario: Form element methods in selenium
+ When I locate the form
+ Then I should know its' value is nil
+
+ Scenario: List item element methods
+ When I retrieve a list item element
+ Then I should know it exists
+ And I should know it is visible
+ And I should know its' text is "Item One"
+ And I should know it is equal to itself
+ And I should know its' tag name is "li"
+ And I should know the attribute "readonly" is false
+ And I should be able to click it
+
+ Scenario: Unordered list element methods
+ When I retrieve an unordered list element
+ Then I should know it exists
+ And I should know it is visible
+ And I should know its' text includes "Item One"
+ And I should know its' text includes "Item Two"
+ And I should know its' text includes "Item Three"
+ And I should know it is equal to itself
+ And I should know its' tag name is "ul"
+ And I should know the attribute "readonly" is false
+ And I should be able to click it
+
+ Scenario: Ordered list element methods
+ When I retrieve an ordered list element
+ Then I should know it exists
+ And I should know it is visible
+ And I should know its' text includes "Number One"
+ And I should know its' text includes "Number Two"
+ And I should know its' text includes "Number Three"
+ And I should know it is equal to itself
+ And I should know its' tag name is "ol"
+ And I should know the attribute "readonly" is false
+ And I should be able to click it