diff --git a/examples/test--when--i-press-button.html b/examples/test--when--i-press-button.html index f800871..2ab0fd0 100755 --- a/examples/test--when--i-press-button.html +++ b/examples/test--when--i-press-button.html @@ -22,10 +22,10 @@

Press Button


- - + + - + \ No newline at end of file diff --git a/tests/features/test--when--i-press-button-by-attribute.feature b/tests/features/test--when--i-press-button-by-attribute.feature index 89e97d4..84cd43f 100755 --- a/tests/features/test--when--i-press-button-by-attribute.feature +++ b/tests/features/test--when--i-press-button-by-attribute.feature @@ -5,7 +5,7 @@ Feature: An example to press a button Scenario: Verify clicking a button using its ID attribute. Given I am on "/test--when--i-press-button.html" - When I press "btn-pressID" by "id" attr + When I press "btn-pressid" by "id" attr Then I should see "Button Pressed Successfully" Scenario: Verify that you can click a button using its default name attribute. diff --git a/tests/step-definitions/webship.js b/tests/step-definitions/webship.js index 138d538..857f068 100755 --- a/tests/step-definitions/webship.js +++ b/tests/step-definitions/webship.js @@ -112,8 +112,8 @@ When(/^(I|we)* press "([^"]*)?"$/, function (pronoundCase, element) { /** * Presses button with specified element - * Example: When I press "btn-pressID" by attr - * Example: When I press "btn-pressID" by attribute + * Example: When I press "btn-pressid" by attr + * Example: When I press "btn-pressid" by attribute * Example: And I press "Your full name" by "placeholder" attribute * Example: And I press "Your full name" by its "placeholder" attribute * Example: And I press "save-name" by "data-drupal-selector" attr