Skip to content

Commit

Permalink
Add a step definition when I press value by the attribute name #140
Browse files Browse the repository at this point in the history
  • Loading branch information
TasneemNatshah committed Jul 8, 2024
1 parent 31e5756 commit 5f2994b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1>Select Option</h1>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<input id="btnClick" class="btnClick" name="btnClick" type="button" value="Check select" onclick="onClick()">
<input id="btnClick" class="btnClick" name="btnClick" type="button" value="Submit" onclick="onClick()">
<div id="result" class="style"></div><br/>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ Feature: An example to select option from drop down list
Scenario: Check of selecting option from drop down list
Given I am on "/test--when--i-select-option-from-dropdownlist.html"
When I select "Saab" from "cars"
When I press "Check select" by attr
Then I should see "Option ( Saab ) has been selected successfully"


When I press "Submit" by attr
Then I should see "Option ( Saab ) has been selected successfully"

0 comments on commit 5f2994b

Please sign in to comment.