Fix topic selector xpath

This commit is contained in:
Thomas Nordquist
2019-02-25 17:58:24 +01:00
parent d3bf5e87e1
commit 63530a41ac

View File

@@ -24,6 +24,6 @@ async function topicMatches(topics: string[], browser: Browser<void>) {
}
function topicSelector(topics: string[]) {
const suffix = topics.map(topic => `*[contains(text(), "${topic}")]`).join('/../..//')
const suffix = topics.map(topic => `*[contains(text(), "${topic}")]`).join('/../../..//')
return `//${suffix}`
}