UNPKG
webdriverio-automation
Version:
latest (1.0.0)
1.0.0
WebdriverIO-Automation android ios project
webdriverio-automation
/
node_modules
/
devtools
/
build
/
scripts
/
getActiveElement.js
15 lines
(12 loc)
•
293 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
= getActiveElement;
function
getActiveElement
(
_, dataProperty
) {
if
(!
document
.
activeElement
) {
return
false
; }
document
.
activeElement
.
setAttribute
(dataProperty,
true
);
return
true
; }