Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #19 from Gagnavarslan/master-fix-dropdown-selectio…
Browse files Browse the repository at this point in the history
…n-on-chrome

Fix set_dropdown_value for Chrome.
  • Loading branch information
arnlaugsson authored Jul 20, 2016
2 parents 0722491 + fdb847f commit 75d364c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#


__version__ = '0.2.8dev-3'
__version__ = '0.2.8dev-4'

DEVSERVER_PORT = 8120 # django devserver for internal acceptance tests

Expand Down
2 changes: 1 addition & 1 deletion src/sst/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ def set_dropdown_value(id_or_elem, text=None, value=None):
text or value))
if text and not value:
for element in elem.find_elements_by_tag_name('option'):
if element.text == text:
if element.text.strip() == text:
element.click()
return
msg = 'The following option could not be found in the list: %r' % text
Expand Down

0 comments on commit 75d364c

Please sign in to comment.