Skip to content

Commit

Permalink
Update elementfinder.py
Browse files Browse the repository at this point in the history
Fixed off by one in _find_by_data_locator
  • Loading branch information
markus-leben authored Oct 7, 2024
1 parent 038af54 commit 2eef15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SeleniumLibrary/locators/elementfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2eef15c

Please sign in to comment.