Skip to content

Commit fb3c43e

Browse files
committed
Revert "Rollback change that effected get webelements"
This reverts commit de47625.
2 parents de47625 + 3114c66 commit fb3c43e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AppiumLibrary/keywords/_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def _element_find(self, locator, first_only, required, tag=None):
571571
if len(elements) == 0: return None
572572
return elements[0]
573573
elif isinstance(locator, WebElement):
574-
elements = locator
574+
elements = [locator]
575575
# do some other stuff here like deal with list of webelements
576576
# ... or raise locator/element specific error if required
577577
return elements

0 commit comments

Comments
 (0)