Skip to content

Commit ae8f9a6

Browse files
committed
Small refactor.
1 parent 87bb9b1 commit ae8f9a6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

lib/api/web-element/commands/getAriaRole.js

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* @syntax browser.element(selector).getAriaRole()
2323
* @see https://www.w3.org/TR/webdriver#dfn-get-computed-role
2424
* @returns {ScopedValue<string>} The container with computed WAI-ARIA role of an element.
25-
* @alias ariaRole
2625
*/
2726
module.exports.command = function() {
2827
return this.runQueuedCommandScoped('getElementAriaRole');

lib/api/web-element/scoped-element.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class ScopedWebElement {
2525
'getRect': ['getSize', 'getLocation', 'rect'],
2626
'getProperty': ['property'],
2727
'getCssProperty': ['css'],
28-
'isVisible': ['isDisplayed'],
29-
'getAriaRole': ['ariaRole']
28+
'getAriaRole': ['ariaRole'],
29+
'isVisible': ['isDisplayed']
3030
};
3131
}
3232

types/web-element.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ export interface ScopedElement extends Element, PromiseLike<WebElement> {
178178
getAccessibleName(): ElementValue<string>;
179179

180180
getAriaRole(): ElementValue<string>;
181-
182181
ariaRole(): ElementValue<string>;
183182

184183
getCssProperty(name: string): ElementValue<string>;

0 commit comments

Comments
 (0)