Skip to content

Commit 493f82f

Browse files
author
Krzysztof
committed
*
1 parent d35c251 commit 493f82f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

commands/.gitkeep

Whitespace-only changes.

commands/Click.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
exports.command = function (selector, message = `Entered selector: ${selector} into the field: ${selector}`) {
2-
return this
3-
.waitForElementVisible(selector)
4-
.click(selector)
5-
}
1+
exports.command = function (
2+
selector,
3+
message = `Clicked on element with selector: ${selector}`
4+
) {
5+
return this.waitForElementVisible(selector).click(selector).Log(message);
6+
};

0 commit comments

Comments
 (0)