From 2eef15ca3287112e984a86230b0f1b87c15fecdf Mon Sep 17 00:00:00 2001 From: Markus Leben <61570879+markus-leben@users.noreply.github.com> Date: Mon, 7 Oct 2024 12:50:58 -0600 Subject: [PATCH] Update elementfinder.py Fixed off by one in _find_by_data_locator --- src/SeleniumLibrary/locators/elementfinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SeleniumLibrary/locators/elementfinder.py b/src/SeleniumLibrary/locators/elementfinder.py index d74486a3e..e48f63f87 100644 --- a/src/SeleniumLibrary/locators/elementfinder.py +++ b/src/SeleniumLibrary/locators/elementfinder.py @@ -223,7 +223,7 @@ def _find_by_tag_name(self, criteria, tag, constraints, parent): def _find_by_data_locator(self, criteria, tag, constraints, parent): try: - name, value = criteria.split(":", 2) + name, value = criteria.split(":", 1) if "" in [name, value]: raise ValueError except ValueError: