mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 03:19:51 +03:00
41 lines
736 B
JavaScript
41 lines
736 B
JavaScript
/// <reference types="@wdio/globals/types" />
|
|
/// <reference types="./types/webdriver.js" />
|
|
|
|
/**
|
|
*
|
|
* @param {WebdriverIO.Browser} browser
|
|
*/
|
|
export function addCommands(browser) {
|
|
/**
|
|
* @file Custom WDIO browser commands
|
|
*/
|
|
|
|
browser.addCommand(
|
|
"focus",
|
|
/**
|
|
* @this {HTMLElement}
|
|
*/
|
|
// @ts-ignore
|
|
function () {
|
|
this.focus();
|
|
|
|
return this;
|
|
},
|
|
/* attachToElement */ true,
|
|
);
|
|
|
|
browser.addCommand(
|
|
"blur",
|
|
/**
|
|
* @this {HTMLElement}
|
|
*/
|
|
// @ts-ignore
|
|
function () {
|
|
this.blur();
|
|
|
|
return this;
|
|
},
|
|
/* attachToElement */ true,
|
|
);
|
|
}
|