Skip to content

Commit

Permalink
Change assertion that element exists on the current page by its label #…
Browse files Browse the repository at this point in the history
  • Loading branch information
TasneemNatshah committed Jul 30, 2024
1 parent d85e422 commit fa0d0b9
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 @@ -569,7 +569,7 @@ Then(/^(I|we)* should not see "([^"]*)?" in the "([^"]*)?" element by( its)*( "(
*
*/
Then(/^(I|we)* should see (a|an) "([^"]*)?" element$/, function (pronoundCase, aAnCase, element) {
const elementField = browser.element.findByText(element);
const elementField = browser.element.findByText(element, { exact: true });
browser.getAttribute(elementField, 'for', function (eleAttribute) {
return browser.verify.visible('#' + eleAttribute.value);
});
Expand Down

0 comments on commit fa0d0b9

Please sign in to comment.