We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d35c251 commit 493f82fCopy full SHA for 493f82f
commands/.gitkeep
commands/Click.js
@@ -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
-}
+exports.command = function (
+ selector,
+ message = `Clicked on element with selector: ${selector}`
+) {
+ return this.waitForElementVisible(selector).click(selector).Log(message);
6
+};
0 commit comments