Skip to content

Commit b8c5c70

Browse files
committed
Add locator name in error message.
1 parent b53f454 commit b8c5c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Selenium2Library/locators/customlocator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def find(self, *args):
1919
elif hasattr(self.finder, '__caller__'):
2020
element = self.finder(*args)
2121
else:
22-
raise AttributeError('Invalid type provided as a Custom Locator')
22+
raise AttributeError('Invalid type provided for Custom Locator %s' % self.name)
2323

2424
# Always return an array
2525
if hasattr(element, '__len__') and (not isinstance(element, string_type)):

0 commit comments

Comments
 (0)