Skip to content

Commit

Permalink
Add a step definition filling the input textbox with value by its att…
Browse files Browse the repository at this point in the history
…ribute #143
  • Loading branch information
TasneemNatshah committed Jul 12, 2024
1 parent 7227687 commit d24cc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/step-definitions/webship.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ When(/^(I|we)* fill in "([^"]*)?" with "([^"]*)?" by( its)*( "([^"]*)?")* (attri

var selector = '';
if (!attr && hasASpace == -1){
selector = attrValue + ',#' + attrValue + ',.' + attrValue + ',[name=' + attrValue + "]";
selector = attrValue + ',#' + attrValue + ',.' + attrValue + ',[name=' + attrValue + "]," + '[value="' + attrValue + '"],[placeholder="' + attrValue + '"]';
}
else if (!attr && hasASpace > -1){
selector ='[value="' + attrValue + '"],[placeholder="' + attrValue + '"]';
Expand Down

0 comments on commit d24cc58

Please sign in to comment.