From e23b93273651b5d1cc6440dbe7592fb77a00d415 Mon Sep 17 00:00:00 2001 From: vculea Date: Tue, 27 Aug 2024 10:45:53 +0300 Subject: [PATCH] revert --- src/main/java/com/sdl/selenium/web/XPathBuilder.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/sdl/selenium/web/XPathBuilder.java b/src/main/java/com/sdl/selenium/web/XPathBuilder.java index 00b069c7..357ed7cf 100644 --- a/src/main/java/com/sdl/selenium/web/XPathBuilder.java +++ b/src/main/java/com/sdl/selenium/web/XPathBuilder.java @@ -1067,11 +1067,7 @@ public void addTextInPath(List selectors, String text, String pattern, L String escapeQuotesText = Utils.getEscapeQuotesText(strings[i]); if (searchTextType.contains(SearchType.CONTAINS_ALL_CHILD_NODES)) { if (searchTextType.contains(SearchType.CASE_INSENSITIVE)) { - if (strings[i].equals("'")) { - strings[i] = "count(*//text()[contains(translate(.,\\\"" + strings[i].replaceAll("CONCAT\\(", "concat(") + "\\\",\\\"" + strings[i] + "\\\"),\\\"" + strings[i] + "\\\")]) > 0"; - } else { - strings[i] = "count(*//text()[contains(translate(.," + escapeQuotesText.toUpperCase().replaceAll("CONCAT\\(", "concat(") + "," + escapeQuotesText.toLowerCase() + ")," + escapeQuotesText.toLowerCase() + ")]) > 0"; - } + strings[i] = "count(*//text()[contains(translate(.," + escapeQuotesText.toUpperCase().replaceAll("CONCAT\\(", "concat(") + "," + escapeQuotesText.toLowerCase() + ")," + escapeQuotesText.toLowerCase() + ")]) > 0"; } else { strings[i] = "count(*//text()[contains(.," + escapeQuotesText + ")]) > 0"; }