Skip to content

Commit

Permalink
Add: Alias in new Element API
Browse files Browse the repository at this point in the history
  • Loading branch information
its-kunal committed Feb 29, 2024
1 parent e4579ba commit afaea28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/api/web-element/commands/find.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
* @syntax browser.element.find(selector)
* @param {String|Object} selector
* @returns {ScopedWebElement}
* @alias get
* @alias findElement
*/
module.exports.command = function(selector) {
return this.createScopedElement(selector, this);
Expand Down
2 changes: 2 additions & 0 deletions lib/api/web-element/commands/findAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* @syntax browser.element.findAll(syntax)
* @param {Selector} selector
* @returns {Array.<ScopeWebElement>}
* @alias getAll
* @alias findElements
*/
module.exports.command = function(selector) {
return this.createScopedElements(selector, {parentElement: this, commandName: 'findAll'});
Expand Down

0 comments on commit afaea28

Please sign in to comment.