Skip to content

Commit

Permalink
Fix unicode support for click text
Browse files Browse the repository at this point in the history
  • Loading branch information
serhatbolsu committed Oct 13, 2016
1 parent e2de7fc commit 4ae9d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AppiumLibrary/keywords/_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def click_text(self, text, exact_match=False):
"""
_platform_class_dict = {'ios': 'name', 'android': 'text'}
if exact_match:
_xpath = '//*[@{}="{}"]'.format(
_xpath = u'//*[@{}="{}"]'.format(
_platform_class_dict.get(self._get_platform()),
text)
else:
_xpath = '//*[contains(@{},"{}")]'.format(
_xpath = u'//*[contains(@{},"{}")]'.format(
_platform_class_dict.get(self._get_platform()),
text)
self._element_find(_xpath, True, True).click()
Expand Down

0 comments on commit 4ae9d2e

Please sign in to comment.