Sha256: cc3f75d108d558f6092e8d787576b639016473d1405ad695097dd9d98a188a23

Contents?: true

Size: 1.95 KB

Versions: 25

Compression:

Stored size: 1.95 KB

Contents

Feature: Text Fields
  In order to interact with text fields
  Testers will need access and interrogation ability


  Background:
    Given I am on the static elements page

  Scenario: Setting and getting a value from a text field
    When I type "abcDEF" into the text field
    Then the text field should contain "abcDEF"

  Scenario Outline: Locating text fields on the Page
    When I search for the text field by "<search_by>"
    Then I should be able to type "I found it" into the field

  Examples:
    | search_by  |
    | id         |
    | class      |
    | name       |
    | xpath      |
    | index      |
    | title      |
    | text       |
    | label      |


  @watir_only
  Scenario Outline: Locating text fields on the Page using Watir
    When I search for the text field by "<search_by>"
    Then I should be able to type "I found it" into the field
  Examples:
    | search_by  |
    | data_field |

  @selenium_only
  Scenario Outline: Locating text fields on the Page using Selenium
    When I search for the text field by "<search_by>"
    Then I should be able to type "I found it" into the field

  Examples:
    | search_by |
    | css       |


  Scenario Outline: Locating a text field using multiple parameters
    When I search for the text field by "<param1>" and "<param2>"
    Then I should be able to type "I found it" into the field

  Examples:
    | param1 | param2 |
    | class  | index  |
    | name   | index  |

  Scenario: Retrieve a text field
    When I retrieve a text field
    Then I should know it exists
    And I should know it is visible

  Scenario: Finding a text field dynamically
    When I find a text field while the script is executing
    Then I should see that the text field exists
    And I should be able to type "I found it" into the field element

  Scenario: Appending text to a text field
    When I type "abcd" into the text field
    And I append "efg" to the text field
    Then the text field should contain "abcdefg"

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
page-object-0.9.4 features/text_field.feature
page-object-0.9.3 features/text_field.feature
page-object-0.9.2 features/text_field.feature
page-object-0.9.1 features/text_field.feature
page-object-0.9.0 features/text_field.feature