Permalink
Browse files

Merge pull request #86 from teodosia/fix-locator

[prod]Fix for failing TestSearch.test_clicking_addon_author_link_display...
  • Loading branch information...
2 parents 0c6702c + 012bf71 commit 0c6d2ba94fbdaeb3df8535fe2c70567bcb8a27fd @AlinT AlinT committed Dec 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pages/search_page.py
View
@@ -159,7 +159,7 @@ def __init__(self, testsetup, lookup):
if type(lookup) is int:
self._root_locator = (self._base_locator[0], "%s[%i]" % (self._base_locator[1], lookup))
elif type(lookup) is unicode:
- self._root_locator = (self._base_locator[0], "%s[descendant::h3/a[text()='%s']]" % (self._base_locator[1], lookup))
+ self._root_locator = (self._base_locator[0], "%s[descendant::h3/a[normalize-space(text())='%s']]" % (self._base_locator[1], lookup))
_name_locator = (By.CSS_SELECTOR, "h3 > a")
_author_link_locator = (By.CSS_SELECTOR, "ul.search_meta li:nth-child(1) > a")

0 comments on commit 0c6d2ba

Please sign in to comment.