Open
Description
When trying to select a Dropdown option value that contains Unicode characters, it fails finding the option and perform the click.
# purchase_point is an instance inheriting from Dropdown
# class SelectFilter(Dropdown):
purchase_point = filters.get_filter(filters.PURCHASE_POINT)
purchase_point.select('Default Store View')
Solution is to strip the option.html string in the _select function:
def _select(self, value: str) -> List[str]:
found_options = []
for option in self.options:
found_options.append(option.html.strip())
if option.html.strip() == value:
option.click()
return []
return found_options
Metadata
Assignees
Labels
No labels
Activity