Skip to content

Commit 82856db

Browse files
author
David Haeffner
committed
Removing the innerText locator strategy until performance can be improved
1 parent a546d2e commit 82856db

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/selenium-ide/src/content/locatorBuilders.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,13 @@ LocatorBuilders.add('xpath:position', function(e, opt_contextNode) {
490490
return null
491491
})
492492

493-
LocatorBuilders.add('xpath:innerText', function(el) {
494-
if (el.innerText && el.nodeName !== 'DIV') {
495-
const initialXpath = `//${el.nodeName.toLowerCase()}[contains(.,'${
496-
el.innerText
497-
}')]`
498-
return this.preciseXPath(initialXpath, el)
499-
} else {
500-
return null
501-
}
502-
})
493+
//LocatorBuilders.add('xpath:innerText', function(el) {
494+
// if (el.innerText && el.nodeName !== 'DIV') {
495+
// const initialXpath = `//${el.nodeName.toLowerCase()}[contains(.,'${
496+
// el.innerText
497+
// }')]`
498+
// return this.preciseXPath(initialXpath, el)
499+
// } else {
500+
// return null
501+
// }
502+
//})

0 commit comments

Comments
 (0)