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 6a9ad67 commit 5e611b5Copy full SHA for 5e611b5
lib/core/utils/dq-element.js
@@ -24,7 +24,10 @@ function getFullPathSelector(elm) {
24
const element = elm;
25
const names = [];
26
while (elm.parentElement && elm.nodeName !== 'BODY') {
27
- if (elm.id) {
+ if(sourceCache.has(elm)) {
28
+ names.unshift(sourceCache.get(elm));
29
+ break;
30
+ } else if (elm.id) {
31
names.unshift('#' + elm.getAttribute('id'));
32
break;
33
} else {
0 commit comments